cabotia / cabotia.dev/ layouts/_default/single.htmla038d85870abfa5840f549c944fe88149c867b17
301 B | 14 lines Raw
1
{{ define "main" }}
2
	{{ $dateFormat := i18n "date.format" }}
3
	<article>
4
		<h1>{{ .Title }}</h1>
5

6
		{{ if not .Date.IsZero }}
7
			<p class="post-meta">
8
				<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format $dateFormat }}</time>
9
			</p>
10
		{{ end }}
11

12
		{{ .Content }}
13
	</article>
14
{{ end }}