taxonomies - added taxonmies support (#396)
* taxonomies - added taxonmies support * taxonomies - add active class * Update CSS Signed-off-by: hossainemruz <hossainemruz@gmail.com> * Fix tag link for multilingual mode + add translations Signed-off-by: hossainemruz <hossainemruz@gmail.com> Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
This commit is contained in:
parent
6d98c15136
commit
7b92452e2b
20 changed files with 252 additions and 1 deletions
|
@ -54,7 +54,16 @@
|
|||
<div class="title">
|
||||
<h1>{{ .Page.Title }}</h1>
|
||||
</div>
|
||||
|
||||
{{ if site.Params.enableTags }}
|
||||
<div class="taxonomy-terms">
|
||||
<ul>
|
||||
{{ range .Params.tags }}
|
||||
{{ $url:= printf "tags/%s" . }}
|
||||
<li class="rounded"><a href="{{ $url | urlize | relLangURL }}" class="btn, btn-sm">{{ . }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="post-content" id="post-content">
|
||||
{{ .Page.Content }}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue