PageRenderTime 28ms CodeModel.GetById 15ms app.highlight 6ms RepoModel.GetById 2ms 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
 1mode: learning
 2media_root: media
 3media_url: /media
 4base_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/
10template: hyde.ext.templates.jinja.Jinja2Template
11plugins:
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
18context:
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
38### Advanced part ###
39
40# This defines meta data on the whole site.
41meta:
42    # 'nodemeta' will tell Hyde what file to look for inside a folder from
43    # which to apply meta data to all files (resources) inside it. This is
44    # a great way of simply adding or modifying properties of a very large
45    # number of files.
46    nodemeta: meta.yaml
47    ga_tracking_code: XX-XXXXXXXX-X
48
49sorter:
50    name: # the name of the sorter (no pun intended)
51        attr: name # by which attributes will resources be sorted
52        filters:
53            source_file.kind: html
54            # You can include only files from a certain folder.
55            #resource.node: (name of the folder)
56        #reverse: True # if you need the list backwards
57    file_type:
58        attr: 
59            - source_file.kind
60            - source_file.size
61    index:
62        attr: meta.index
63        filters:
64            source_file.kind: html
65    learning_order:
66        attr: meta.learning_order
67        filters:
68            source_file.kind: html
69
70grouper:
71    level:
72        sorter: name
73        description: Difficulty levels
74        groups:
75            - name: basic
76              description: Basic
77            - name: advanced
78              description: Advanced
79    # You can have more than one group section, depending on your needs.
80    # For example: "categories", "menu sections", etc.
81    #category:
82    #    description: To which category a blog post belongs to.
83    #    groups:
84    #        - name: software
85    #          description: Software engineering
86    #        - name: web
87    #          description: Web technologies
88    #        - name: seo
89    #          description: Search Engine Optimization
90
91tagger:
92    sorter: name