<div class="sidebar-widget">
<p class="sidebar-widget-label"># {{ i18n "topTags" }}</p>
<nav aria-label="{{ i18n "exploreTopics" }}">
- <div class="tag-cloud">
+ <div class="tag-cloud" data-tag-cloud>
{{- else -}}
<section aria-labelledby="tag-cloud-heading">
<{{ $headingLevel }} id="tag-cloud-heading" class="text-lg font-semibold text-accent mb-4">
{{ $heading }}
</{{ $headingLevel }}>
<nav aria-label="{{ i18n "exploreTopics" }}">
- <div class="tag-cloud">
+ <div class="tag-cloud" data-tag-cloud>
{{- end -}}
{{- range $orderedTags -}}
<a
href="{{ .Page.RelPermalink }}"
class="tag-cloud-link"
+ data-weight="{{ printf "%.4f" $ratio }}"
{{- if ge $ratio 0.5 }}
style="font-size: {{ $size }}rem; color: var(--accent); opacity: {{ $opacity }};"
{{- else }}