mirror of
https://github.com/LukasJoswiak/etch.git
synced 2024-05-18 13:48:32 -04:00
18 lines
490 B
HTML
18 lines
490 B
HTML
{{ define "main" }}
|
|
<article>
|
|
<header id="post-header">
|
|
<h1>{{ .Title }}</h1>
|
|
<div>
|
|
{{- if isset .Params "date" -}}
|
|
{{ if eq .Lastmod .Date }}
|
|
<time>{{ .Date.Format "January 2, 2006" }}</time>
|
|
{{ else }}
|
|
Updated <time>{{ .Lastmod.Format "January 2, 2006" }}</time>
|
|
{{ end }}
|
|
{{- end -}}
|
|
</div>
|
|
</header>
|
|
{{- .Content -}}
|
|
</article>
|
|
{{ end }}
|