theme(fix): remove additional config load and some refactoring

Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
This commit is contained in:
Patrick Kollitsch 2024-12-15 13:00:09 +07:00
parent 600bddab7c
commit 1f4ac20f4f
No known key found for this signature in database
GPG Key ID: 01A2661D61A772CA
3 changed files with 3 additions and 4 deletions

View File

@ -10,7 +10,6 @@
{{- $title := $context.Title -}} {{- $title := $context.Title -}}
{{- $url := printf "%s" $context.Permalink | absLangURL -}} {{- $url := printf "%s" $context.Permalink | absLangURL -}}
{{- $config := site.Params.ananke.social -}}
{{- $networks := $config.share.networks -}} {{- $networks := $config.share.networks -}}
{{- $hasLabel := $config.share.sharetext | default "true" -}} {{- $hasLabel := $config.share.sharetext | default "true" -}}
{{- $hasIcon := $config.share.icons | default "true" -}} {{- $hasIcon := $config.share.icons | default "true" -}}