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

github.com/colorchestra/smol.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormorph <morph@posteo.de>2020-05-28 12:47:41 +0300
committermorph <morph@posteo.de>2020-05-28 12:47:41 +0300
commitc55e178d95f456b4dd4b937a3b73095e02316a24 (patch)
tree98788d9d4002f63815c5348d1f056e97f85ccd61
parent98f378452986d685266dec437cb7cf61fc41c3c4 (diff)
move position of tags on single page
-rw-r--r--layouts/_default/single.html13
1 files changed, 4 insertions, 9 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 7920d00..1de478c 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -3,18 +3,13 @@
<article>
<h1>{{ .Title }}</h1>
<b><time>{{ .Date.Format "02.01.2006 15:04" }}</time></b>
+ {{ range .Params.tags }}
+ <a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
+ {{ end }}
+
<div>
{{ .Content }}
</div>
- {{ with .Params.tags }}
- <div>
- <ul id="tags">
- {{ range . }}
- <li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li>
- {{ end }}
- </ul>
- </div>
- {{ end }}
</article>
</main>
{{ partial "sidebar.html" . }}