Commit b0550f7d authored by Kaushal Modi's avatar Kaushal Modi

Add tags list at the bottom of each post

parent 605a4730
......@@ -21,6 +21,7 @@
<div class="post-catlist right">
{{ partial "post_categories.html" . }}
{{ partial "post_tags.html" . }}
</div>
{{ end }}
......
<ul class="catlist no-color-links">
{{ if .Params.tags }}
{{ $count := len .Params.tags }}
{{ if gt $count 0 }}
&nbsp;<span>
<i class="fal fa-tags"></i>
{{ range $k, $v := .Params.tags }}
<a href="/tags/{{ . | urlize }}">{{ . }}</a>
{{ if lt $k (sub $count 1) }}
,
{{ end }}
{{ end }}
</span>
{{ end }}
<!-- Older implementation -->
<!-- <i class="fal fa-tags"></i> -->
{{/* range .Params.tags */}}
<!-- <li><a href="/tags/{{ . | urlize }}">{{ . }}</a> </li> -->
{{/* end */}}
{{ end }}
</ul>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment