all repos — homestead @ f9dfee0fac940ec4b5181f06d306644d139eed62

Code for my website

homepage: only show posts under "recent posts"

Alan Pearce
commit

f9dfee0fac940ec4b5181f06d306644d139eed62

parent

2c1e9d8325c9f1d3077e992f4953f7bdc53026fe

1 file changed, 1 insertion(+), 0 deletions(-)

jump to
M templates/index.htmltemplates/index.html
@@ -11,6 +11,7 @@ </div>
<section> <h2>Latest Posts</h2> <ul class="h-feed"> + {%- set section = get_section(path="post/_index.md") %} {%- for page in section.pages | slice(end=3) %} <li class="h-entry"> <time class="dt-published" datetime="{{ page.date | date(format="%+") }}">{{ page.date | date(format=config.extra.date_format) }}</time>