smolboi/layouts/_default/home.html

15 lines
353 B
HTML

{{ define "main" }}
<article>
{{ with .Title }}
<header>
<h1>{{ . | emojify }}</h1>
</header>
{{ end }}
<section>{{ .Content | emojify }}</section>
</article>
{{ range first 3 ( where .Site.RegularPages "Type" "posts"
).ByPublishDate.Reverse }}
<h4><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
<p>{{.Summary}}</p>
{{ end }} {{ end }}