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

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