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

github.com/azmelanar/hugo-theme-pixyll.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkshcherban <k.scherban@gmail.com>2014-11-22 15:26:17 +0300
committerkshcherban <k.scherban@gmail.com>2014-11-22 15:26:17 +0300
commitc345590bfc9410f67484d5e062d081d668872fad (patch)
tree5b78224f7e8235970b94c26cae89509e95b79f90 /layouts
parentb651ee46bc87ec7567bedc624c17525c47cc7e36 (diff)
Added tags to index and posts
Diffstat (limited to 'layouts')
-rw-r--r--layouts/post/single.html3
-rw-r--r--layouts/post/summary.html6
2 files changed, 8 insertions, 1 deletions
diff --git a/layouts/post/single.html b/layouts/post/single.html
index 1404bbc..1d617be 100644
--- a/layouts/post/single.html
+++ b/layouts/post/single.html
@@ -7,7 +7,8 @@
<h1 class="py2">{{ .Title }}</h1>
<span class="post-meta">{{ .Date.Format "Jan 2, 2006" }} by {{ .Params.author }}</span><br>
{{ $baseurl := .Site.BaseUrl }}
- <p id="tags">{{ range $i, $e := .Params.tags }}
+ <p id="tags">Tags:&nbsp;
+ {{ range $i, $e := .Params.tags }}
{{if $i}},&nbsp;{{end}}
<a href="{{ $baseurl }}/tags/{{ . }}">{{ . }}</a>
{{ end }}</p>
diff --git a/layouts/post/summary.html b/layouts/post/summary.html
index 48e684d..365c81a 100644
--- a/layouts/post/summary.html
+++ b/layouts/post/summary.html
@@ -6,4 +6,10 @@
<h3 class="h2 post-title">{{ .Title }} {{ if .Draft }}(draft){{end}}</h3>
<p class="post-summary">{{ .Summary }}</p>
</a>
+ {{ $baseurl := .Site.BaseUrl }}
+ <p style="color: #000;">Tags:&nbsp;
+ {{ range $i, $e := .Params.tags }}
+ {{if $i}},&nbsp;{{end}}
+ <a href="{{ $baseurl }}/tags/{{ . }}">{{ . }}</a>
+ {{ end }}</p>
</div>