mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 09:12:47 +00:00
Changed the tags partial, added some parametrization:
tag_text_copy tag_class
This commit is contained in:
parent
dce0d1faae
commit
b253230db3
@ -1,9 +1,14 @@
|
||||
<ul class="pa0">
|
||||
{{ range .Params.tags }}
|
||||
<li class="list">
|
||||
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}" class="link f5 grow no-underline br-pill ba ph3 pv2 mb2 dib black sans-serif">
|
||||
{{- . -}}
|
||||
</a>
|
||||
</li>
|
||||
<div class="bb bt b--black-10 mt5">
|
||||
{{ if $.Param "tag_text_copy" }}
|
||||
<p class="f6 b"> {{ $.Param "tag_text_copy" }} </p>
|
||||
{{ end }}
|
||||
</ul>
|
||||
<ul class="pa0 flex flex-wrap">
|
||||
{{ range .Params.tags }}
|
||||
<li class="list mr2">
|
||||
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}" class="{{ $.Param "tag_class" | default "link f5 grow no-underline br-pill ba ph3 pv2 mb2 dib black sans-serif" }}">
|
||||
{{. | upper }}
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user