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