summaryrefslogtreecommitdiff
path: root/layouts/blog/single.html
blob: 50ec4d8cbd42fab2347ff392e71e397391de5ff6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{{ define "main" }}
<div itemscope itemtype="http://schema.org/Article">
  <h1 itemprop="headline">{{ .Title }}</h1>

  <em>
    Published:
    <time itemprop="dateCreated" datetime="{{ .Date.Format `2006-01-02` }}">{{ .Date.Format "2 Jan 2006" }}</time>
    {{ if not (eq .Lastmod .Date) }}
    <br>Modified:
    <time itemprop="dateModified"
      datetime="{{ .Lastmod.Format `2006-01-02` }}">{{ .Lastmod.Format "2 Jan 2006" }}</time>
    {{ end }}
  </em>

  <div itemprop="articleBody">
    {{ .Content }}
  </div>
</div>
{{ end }}