Changed the tags partial, added some parametrization:

tag_text_copy
tag_class
This commit is contained in:
Emiliano Tortorella 2018-11-14 22:44:24 -04:00
parent dce0d1faae
commit b253230db3

View File

@ -1,9 +1,14 @@
<ul class="pa0">
<div class="bb bt b--black-10 mt5">
{{ if $.Param "tag_text_copy" }}
<p class="f6 b"> {{ $.Param "tag_text_copy" }} </p>
{{ end }}
<ul class="pa0 flex flex-wrap">
{{ 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">
{{- . -}}
<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>