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

github.com/ribice/kiss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmir Ribić <ribice@gmail.com>2019-10-20 21:26:31 +0300
committerGitHub <noreply@github.com>2019-10-20 21:26:31 +0300
commita752be374ae0f754735200264db16a27da740280 (patch)
tree7489630b8f1f9c22ae621378507ffb0ec7daa70d
parent302297164b08e65b18344ec7bb81901ad9dce95a (diff)
parentbfb255f17980eb4af8deef4414e64abea2227107 (diff)
Add taxonomy template for tag pages (#76)
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" . }}