/hyde/layouts/basic/content/index.html

http://github.com/hyde/hyde · HTML · 20 lines · 15 code · 5 blank · 0 comment · 0 complexity · 763bb0f6152d224810344eb4bd5f5dd7 MD5 · raw file

  1. ---
  2. extends: base.j2
  3. default_block: main
  4. title: BASIC - A hyde website
  5. description: Home page for the BASIC hyde template
  6. ---
  7. {% from "macros.j2" import render_excerpt with context %}
  8. <section class="blog_excerpt">
  9. {% set latest = site.content.walk_resources_sorted_by_time()|first %}
  10. {% if latest -%}
  11. {{ render_excerpt(latest, 'post') }}
  12. <a class="button white medium"
  13. href="{{ content_url(latest.url) }}">Read more&hellip;</a>
  14. {%- endif %}
  15. </section>