smolboi/layouts/_default/home.html
2024-07-08 17:05:50 -05:00

15 lines
396 B
HTML

{{ define "main" }}
<article class="prose max-w-full dark:prose-invert">
{{ 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 }}