Fix social share cache

Signed-off-by: Melroy van den Berg <melroy@melroy.org>
This commit is contained in:
Melroy van den Berg 2024-10-21 18:47:13 +02:00 committed by GitHub
parent ddc42113d5
commit ae7f16c264
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,7 +19,7 @@
{{/* This here is an ugly workaround for GoHugo's missing sortByArray feature. {{/* This here is an ugly workaround for GoHugo's missing sortByArray feature.
Let's cache it so it does not take away too much time. Let's cache it so it does not take away too much time.
PS: It's also a couple of years old, so maybe there is a better solution by now. */}} PS: It's also a couple of years old, so maybe there is a better solution by now. */}}
{{- $setups = partials.IncludeCached "func/sortNetworks.html" (dict "networks" $networks "setups" $setups) "social-follow" -}} {{- $setups = partials.IncludeCached "func/sortNetworks.html" (dict "networks" $networks "setups" $setups) "social-share" -}}
<div id="sharing" class="mt3 ananke-socials"> <div id="sharing" class="mt3 ananke-socials">
{{- range $setups -}} {{- range $setups -}}