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