/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
- ---
- index: 1
- title: Advanced topics
- tags:
- - sort
- - group
- - tag
- learning_order: 4
- ---
- More advanced topics
- ====================
- If you have read and understood all basic topics covered in
- {% for res in site.content.walk_resources_grouped_by_basic()|reverse %}
- [{{ res.slug|capitalize|replace("-"," ") }}]({{ res.full_url }})
- {% endfor %}
- then you are ready for some more advanced features. They are explained in
- the same way as the basic part, building on the knowledge of the previous,
- so it is recommended that you follow them in the listed order.
- {# List all resources from a group, sort them by index and list their tags.
- Sometimes you'll have to add HTML to a Markdown file for styling
- or adding some special features, and Markdown is OK with that.
- #}
- <ol>
- {% for res in resource.node.walk_resources_sorted_by_learning_order() %}
- {#
- res.slug|capitalize|replace("-"," ") is just an example of how different
- commands can be chained together, but many times it will be much easier
- just to use meta data if a resource has it, like here -> res.meta.title
- #}
- <li><a href="{{ res.full_url }}">{{ res.meta.title }}</a>
- {% if res.name == "overview.html" %}(this file) {% endif %}
- <span class="tags">tags:
- {% for tag in res.meta.tags %}
- {#
- After wring the tag name, check if that is the last tag in the list. If
- it is, don't append the comma at the end.
- #}
- {{ tag }}{% if tag != res.meta.tags[-1] %},{% endif %}
- {% endfor %}
- </span>
- </li>
- {% endfor %}
- </ol>
- {{ macros.render_bottom_article_nav() }}