PageRenderTime 8ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/hyde/layouts/starter/content/advanced/overview.html

http://github.com/hyde/hyde
HTML | 51 lines | 44 code | 7 blank | 0 comment | 0 complexity | bbabcc53a0d4074262b7bbc93c6b7b43 MD5 | raw file
 1---
 2index: 1
 3title: Advanced topics
 4tags:
 5    - sort
 6    - group
 7    - tag
 8learning_order: 4
 9---
10
11More advanced topics
12====================
13
14If you have read and understood all basic topics covered in
15{% for res in site.content.walk_resources_grouped_by_basic()|reverse %}
16[{{ res.slug|capitalize|replace("-"," ") }}]({{ res.full_url }}) 
17{% endfor %}
18then you are ready for some more advanced features. They are explained in
19the same way as the basic part, building on the knowledge of the previous,
20so it is recommended that you follow them in the listed order.
21
22
23{# List all resources from a group, sort them by index and list their tags.
24
25   Sometimes you'll have to add HTML to a Markdown file for styling
26   or adding some special features, and Markdown is OK with that.
27#}
28<ol>
29{% for res in resource.node.walk_resources_sorted_by_learning_order() %}
30{#
31   res.slug|capitalize|replace("-"," ") is just an example of how different
32   commands can be chained together, but many times it will be much easier
33   just to use meta data if a resource has it, like here -> res.meta.title
34#}
35<li><a href="{{ res.full_url }}">{{ res.meta.title }}</a>
36    {% if res.name == "overview.html" %}(this file) {% endif %}
37
38<span class="tags">tags: 
39{% for tag in res.meta.tags %}
40{#
41   After wring the tag name, check if that is the last tag in the list. If
42   it is, don't append the comma at the end.
43#}
44{{ tag }}{% if tag != res.meta.tags[-1] %},{% endif %} 
45{% endfor %}
46</span>
47</li>
48{% endfor %}
49</ol>
50
51{{ macros.render_bottom_article_nav() }}