This commit is contained in:
ryfrd 2026-03-18 20:32:25 +00:00
parent 6623ee03f6
commit 44c8324063
120 changed files with 22842 additions and 4673 deletions

View file

@ -1,15 +1,18 @@
{{ define "main" }}
<article>
<header id="post-header">
<h2>{{ .Title }}</h2>
<div>
{{- if isset .Params "date" -}} {{ if eq .Lastmod .Date }}
<p>{{ .Date | time.Format (i18n "post.created") }}</p>
{{ else }}
<p>{{ .Lastmod | time.Format (i18n "post.updated") }}</p>
{{ end }} {{- end -}}
</div>
<article class="post">
<header>
<h1>{{ .Title }}</h1>
<time>{{ .Date.Format "Jan 2, 2006" }}</time>
{{ with .Params.tags }}
<div class="tags">
{{ range . }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
</div>
{{ end }}
</header>
{{- .Content -}}
<div class="content">
{{ .Content }}
</div>
</article>
{{ end }}