diff options
Diffstat (limited to 'themes/xmin/layouts/_default/single.html')
-rw-r--r-- | themes/xmin/layouts/_default/single.html | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/themes/xmin/layouts/_default/single.html b/themes/xmin/layouts/_default/single.html index de3f121..54acdc6 100644 --- a/themes/xmin/layouts/_default/single.html +++ b/themes/xmin/layouts/_default/single.html | |||
@@ -1,12 +1,20 @@ | |||
1 | {{ partial "header.html" . }} | 1 | {{ define "main" }} |
2 | <div class="article-meta"> | 2 | <article class="h-entry"> |
3 | <h1><span class="title">{{ .Title | markdownify }}</span></h1> | 3 | <header> |
4 | {{ with .Params.author }}<h2 class="author">{{ . }}</h2>{{ end }} | 4 | <h1><span class="title p-name">{{ .Title | markdownify }}</span></h1> |
5 | {{ if (gt .Params.date 0) }}<h2 class="date">{{ .Date.Format "2006/01/02" }}</h2>{{ end }} | 5 | {{ with .Params.author }}<h2 class="author">{{ . }}</h2>{{ end }} |
6 | </div> | 6 | {{ if (gt .Params.date 0) }}<time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "2006-01-02" }}</time>{{ end }} |
7 | <p class="terms"> | ||
8 | {{ range $i := (slice "categories" "tags") }} | ||
9 | {{ with ($.Param $i) }} | ||
10 | {{ $i | title }}: {{ range $k := . }}<a href="{{ relURL (print "/" $i "/" $k | urlize) }}">{{$k}}</a> {{ end }} | ||
11 | {{ end }} | ||
12 | {{ end }} | ||
13 | </p> | ||
14 | </header> | ||
7 | 15 | ||
8 | <main> | 16 | <main class="e-content"> |
9 | {{ .Content }} | 17 | {{ .Content }} |
10 | </main> | 18 | </main> |
11 | 19 | </article> | |
12 | {{ partial "footer.html" . }} | 20 | {{- end }} |