smolboi/layouts/_default/home.html

16 lines
396 B
HTML
Raw Normal View History

2024-07-08 21:34:47 +00:00
{{ 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 }}