mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-26 18:32:10 +00:00
25ffbd9bbb
ISO 8601 and RFC 3339 are the correct date formats. The other date formats are incorrect.
25 lines
696 B
HTML
25 lines
696 B
HTML
{{ define "main" }}
|
|
<article>
|
|
<header id="post-header">
|
|
<h1>{{ .Title }}</h1>
|
|
{{- if isset .Params "date" -}}
|
|
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006-01-02" }}</time>
|
|
{{- end -}}
|
|
</header>
|
|
{{- .Content -}}
|
|
</article>
|
|
<br>
|
|
<hr>
|
|
<section class="comment">
|
|
{{ with .OutputFormats.Get "gemtext" }}
|
|
<p>
|
|
View this article on <a href="{{replace .Permalink "/gemini" "" 1 | safeURL}}">my Gemini capsule</a>
|
|
</p>
|
|
{{ end }}
|
|
<p>
|
|
<a href="mailto:~seirdy/seirdy.one@lists.sr.ht">Send an email</a> to leave a comment in the <a href="https://lists.sr.ht/~seirdy/seirdy.one-comments">mailing list</a> for seirdy.one
|
|
</p>
|
|
</section>
|
|
<hr>
|
|
|
|
{{ end }}
|