blog.lonjil.xyz/layouts/index.html

22 lines
540 B
HTML

{{ define "main" }}
<div id="home">
<h1 class="title">{{ .Site.Title }}</h1>
</div>
<div>
{{ range first (.Site.Params.PostLimit | default 4) (where .Site.RegularPages.ByPublishDate.Reverse "Section" "posts") }}
<article>
<a class="title" href="{{ .Permalink }}">{{ .Title }}</a></h3>
{{ .Summary }}
{{ .PublishDate.Format "2006-01-02" }} —
{{ if isset .Params "tags" }}
{{ delimit .Params.tags ", " }}
{{ end }}
</article>
<br />
{{ end }}
<div class="box"><a href="posts/">View all posts</a></div>
</div>
{{ end }}