aboutsummaryrefslogtreecommitdiff
path: root/layouts/blog/single.html
blob: 5635e7c896c1f018f7cd4dba0c98a8f4f86c1ddd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{{ define "main" }}

<article class="article">
  <h1>{{ .Title }}</h1>
  <div class="article__date">
    <time datetime="{{ .Date | time.Format "2006-01-02" }}">
      {{ i18n "blog_posted_on" }} {{ .Date | time.Format "2006-01-02" }} (UTC){{ if ne .Lastmod .Date }},{{ end}}
    </time>
    {{- if ne .Lastmod .Date }}
    <time datetime="{{ .Lastmod | time.Format "2006-01-02" }}">
      {{ i18n "blog_updated_on" }} {{ .Lastmod | time.Format "2006-01-02" }} (UTC)
    </time>
    {{- end }}
  </div>

  {{ .Content }}
</article>

{{ end }}