diff options
Diffstat (limited to 'layouts/_default/single.html')
-rwxr-xr-x | layouts/_default/single.html | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100755 index 0000000..44222d4 --- /dev/null +++ b/layouts/_default/single.html | |||
@@ -0,0 +1,33 @@ | |||
1 | {{ define "main" }} | ||
2 | <main> | ||
3 | <article> | ||
4 | <div class="title"> | ||
5 | <h1 class="title">{{ .Title }}</h1> | ||
6 | {{ if .Date }}<div class="meta">Posted on {{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</div> {{ end }} | ||
7 | </div> | ||
8 | {{ if isset .Params "tldr" }} | ||
9 | <div class="tldr"> | ||
10 | <strong>tl;dr:</strong> | ||
11 | {{ .Params.tldr }} | ||
12 | </div>{{ end }} | ||
13 | |||
14 | <section class="body"> | ||
15 | {{ .Content }} | ||
16 | </section> | ||
17 | |||
18 | <div class="post-tags"> | ||
19 | {{ if ne .Type "page" }} | ||
20 | {{ if gt .Params.tags 0 }} | ||
21 | <nav class="nav tags"> | ||
22 | <ul class="tags"> | ||
23 | {{ range .Params.tags }} | ||
24 | <li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li> | ||
25 | {{ end }} | ||
26 | </ul> | ||
27 | </nav> | ||
28 | {{ end }} | ||
29 | {{ end }} | ||
30 | </div> | ||
31 | </article> | ||
32 | </main> | ||
33 | {{ end }} | ||