PageRenderTime 21ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/hyde/layouts/starter/site.yaml

http://github.com/hyde/hyde
YAML | 92 lines | 61 code | 5 blank | 26 comment | 0 complexity | b2c71d051139f405e72c5ef07464ff67 MD5 | raw file
Possible License(s): MIT
  1. mode: learning
  2. media_root: media
  3. media_url: /media
  4. base_url: /
  5. # If your site is nested inside of a bigger one, you can use media_url and
  6. # base_url to properly generate links on your site. For example, if your URL
  7. # will be some.domain.com/starter/, use:
  8. # media_url: /starter/media
  9. # base_url: /starter/
  10. template: hyde.ext.templates.jinja.Jinja2Template
  11. plugins:
  12. - hyde.ext.plugins.meta.MetaPlugin
  13. - hyde.ext.plugins.meta.AutoExtendPlugin
  14. # Plugins needed for the advances section.
  15. - hyde.ext.plugins.meta.SorterPlugin
  16. - hyde.ext.plugins.meta.GrouperPlugin
  17. - hyde.ext.plugins.meta.TaggerPlugin
  18. context:
  19. data:
  20. author:
  21. name: Merlin Rebrović
  22. url: "http://merlin.rebrovic.net"
  23. layout:
  24. name: Hyde Starter Kit
  25. url: "https://github.com/merlinrebrovic/hyde-starter-kit"
  26. project:
  27. name: Hyde
  28. url: "http://hyde.github.com"
  29. install: "https://github.com/hyde/hyde#installation"
  30. menu:
  31. - title: Home
  32. url: index.html
  33. - title: First steps
  34. url: first-steps.html
  35. - title: About
  36. url: about.html
  37. ### Advanced part ###
  38. # This defines meta data on the whole site.
  39. meta:
  40. # 'nodemeta' will tell Hyde what file to look for inside a folder from
  41. # which to apply meta data to all files (resources) inside it. This is
  42. # a great way of simply adding or modifying properties of a very large
  43. # number of files.
  44. nodemeta: meta.yaml
  45. ga_tracking_code: XX-XXXXXXXX-X
  46. sorter:
  47. name: # the name of the sorter (no pun intended)
  48. attr: name # by which attributes will resources be sorted
  49. filters:
  50. source_file.kind: html
  51. # You can include only files from a certain folder.
  52. #resource.node: (name of the folder)
  53. #reverse: True # if you need the list backwards
  54. file_type:
  55. attr:
  56. - source_file.kind
  57. - source_file.size
  58. index:
  59. attr: meta.index
  60. filters:
  61. source_file.kind: html
  62. learning_order:
  63. attr: meta.learning_order
  64. filters:
  65. source_file.kind: html
  66. grouper:
  67. level:
  68. sorter: name
  69. description: Difficulty levels
  70. groups:
  71. - name: basic
  72. description: Basic
  73. - name: advanced
  74. description: Advanced
  75. # You can have more than one group section, depending on your needs.
  76. # For example: "categories", "menu sections", etc.
  77. #category:
  78. # description: To which category a blog post belongs to.
  79. # groups:
  80. # - name: software
  81. # description: Software engineering
  82. # - name: web
  83. # description: Web technologies
  84. # - name: seo
  85. # description: Search Engine Optimization
  86. tagger:
  87. sorter: name