adjusts tag cloud size
This commit is contained in:
parent
0bde9892b0
commit
a145ee2e65
@ -32,32 +32,12 @@
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2 class="text-4xl mb-4 font-iosevka">Facilitators</h2>
|
||||
<div class="tag-cloud font-iosevka text-gray-600">
|
||||
{{ $facilitators := slice }}
|
||||
{{ range .Site.RegularPages }}
|
||||
{{ with .Params.facilitator }}
|
||||
{{ $facilitators = $facilitators | append . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ $facilitators = $facilitators | uniq | sort }}
|
||||
{{ range $facilitator := $facilitators }}
|
||||
<a href="{{ "/facilitators/" | relLangURL }}{{ $facilitator | urlize }}"
|
||||
class="tag inline-block p-2 my-1 border border-gray-100 rounded-lg hover:bg-yellow-100 whitespace-nowrap"
|
||||
style="font-size: 1rem;">
|
||||
{{ $facilitator }}
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2 class="text-4xl mb-4 font-iosevka">Tags</h2>
|
||||
<div class="tag-cloud font-iosevka text-gray-600">
|
||||
<h2 class="text-4xl mb-4 font-iosevka">Topics</h2>
|
||||
<div class="tag-cloud font-iosevka text-gray-600 text-sm">
|
||||
{{ $tags := .Site.Taxonomies.tags }}
|
||||
{{ range $tag, $pages := $tags }}
|
||||
<a href="{{ "/tags/" | relLangURL }}{{ $tag | urlize }}" style="font-size: {{ add 1 (div (len $pages) 2) }}em;"
|
||||
class="tag text-sm inline-block p-2 my-1 border border-gray-100 rounded-lg hover:bg-yellow-100 whitespace-nowrap">
|
||||
<a href="{{ "/tags/" | relLangURL }}{{ $tag | urlize }}" style="font-size: {{ add 1 (div (len $pages) 2) }}em;" data-count="{{ len $pages}}"
|
||||
class="tag inline-block p-2 my-1 border border-gray-100 rounded-lg hover:bg-yellow-100 whitespace-nowrap">
|
||||
{{ $tag }}
|
||||
</a>
|
||||
{{ end }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user