aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/mypaper/layouts/_default/single.html
blob: 06735a309ca8c81d53faa9df5c4b82489b08807a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{{- partial "header.html" . }}

<article class="post-single">
  <header class="post-header">
    <h1 class="post-title">{{ .Title }}</h1>
    <div class="post-meta">
      {{- if or .Params.Author .Site.Author.name }}
      {{- .Params.Author | default .Site.Author.name }} · {{ end }}
      {{- .Date.Format "2006-01-02" -}}
    </div>
  </header>
  <div class="post-content">{{ .Content }}</div>
  {{- if .Params.tags }}
  <footer class="post-footer">
    <ul class="post-tags">
      {{- range .Params.tags }}
      {{- $href := print (absURL "tags/") (urlize .) }}
      <li><a href="{{ $href }}">{{ . }}</a></li>
      {{- end }}
    </ul>
  </footer>
  {{- end }}
</article>

{{- partial "footer.html" . }}