Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pavel-pi/kiss-em.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoff Ruddock <geoff@ruddock.ca>2019-10-19 17:30:42 +0300
committerGeoff Ruddock <geoff@ruddock.ca>2019-10-19 17:30:42 +0300
commitbfb255f17980eb4af8deef4414e64abea2227107 (patch)
tree7489630b8f1f9c22ae621378507ffb0ec7daa70d
parent302297164b08e65b18344ec7bb81901ad9dce95a (diff)
Add taxonomy template for tag pages
-rw-r--r--layouts/taxonomy/tag.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/layouts/taxonomy/tag.html b/layouts/taxonomy/tag.html
new file mode 100644
index 0000000..8168cd4
--- /dev/null
+++ b/layouts/taxonomy/tag.html
@@ -0,0 +1,27 @@
+{{ partial "header" . }}
+{{ partial "nav" . }}
+<section class="section">
+ <div class="container">
+ {{ range .Data.Pages }}
+ <article>
+ <div class="subtitle tags is-6 is-pulled-right">
+ {{ if .Params.tags }}
+ {{ partial "tags" .Params.tags }}
+ {{ end }}
+ </div>
+ <h2 class="subtitle is-6 date">{{ .Date.Format "January 2, 2006" }}</h2>
+ <h1 class="title"><a href="{{ .Permalink }}">{{ .Title }}</a>{{ if .Draft }} ::Draft{{ end }}</h1>
+ <div class="content">
+ {{ .Summary | plainify | safeHTML }}
+ {{ if .Truncated }}
+ <a class="button is-link" href="{{ .Permalink }}" style="height:28px">
+ Read more
+ </a>
+ {{ end }}
+ </div>
+ </article>
+ {{ end }}
+ </div>
+</section>
+{{ partial "pager" . }}
+{{ partial "footer" . }}