/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
- ---
- extends: base.j2
- default_block: main
- title: BASIC - A hyde website
- description: Home page for the BASIC hyde template
- ---
- {% from "macros.j2" import render_excerpt with context %}
- <section class="blog_excerpt">
- {% set latest = site.content.walk_resources_sorted_by_time()|first %}
- {% if latest -%}
- {{ render_excerpt(latest, 'post') }}
- <a class="button white medium"
- href="{{ content_url(latest.url) }}">Read more…</a>
- {%- endif %}
- </section>