{{- /* dedinit() typewriter: animated topics inside logo parens. Pure JS + CSS, no Alpine. Progressive enhancement — no-JS keeps the plain "dedinit()" logo. Words = live site tags (popularity first), so the logo always reflects the actual blog taxonomy. Also: moves theme toggle to the right end of .nav and injects social icons (from [params.socialIcons]) next to the menu. Icons are rendered server-side via the theme's svg.html partial. */ -}} {{- /* Слова для печати: реальные теги сайта, популярные первыми. Исключаем служебные/технические теги, которых много и они неинтересны. */ -}} {{- $skip := slice "deprecated" "frontmatter" "google-analytics" "aux" "hermes" "herdr" "howto" -}} {{- $tags := slice -}} {{- range $t, $pages := site.Taxonomies.tags -}} {{- if not (in $skip $t) -}} {{- $tags = $tags | append (dict "name" $t "count" (len $pages)) -}} {{- end -}} {{- end -}} {{- $tags = sort $tags "count" "desc" -}} {{- if gt (len $tags) 24 }}{{- $tags = first 24 $tags -}}{{- end -}} {{- $tw_words := slice -}} {{- range $tags -}}{{- $tw_words = $tw_words | append .name -}}{{- end -}} {{- $social := site.Params.socialIcons | default (slice) -}} {{- /* server-rendered social icons; moved into the nav by the JS above. display:none so no-JS visitors never see a stray block. */ -}} {{- if $social -}}
{{- range $social -}} {{- partial "svg.html" . -}} {{- end -}}
{{- end -}}