theme(fix): remove caching of share links (#757)
You can't just cache the share links, that will result into every blog post having the same URL. Just use `partial` on the getShareLink.html. So now each post will show the correct URL to share the post via social media or alike. --------- Signed-off-by: Melroy van den Berg <melroy@melroy.org> Signed-off-by: Patrick Kollitsch <83281+davidsneighbour@users.noreply.github.com> Co-authored-by: Patrick Kollitsch <83281+davidsneighbour@users.noreply.github.com>
This commit is contained in:
parent
1bcc471e00
commit
473c7c14c6
|
@ -33,8 +33,8 @@
|
||||||
{{- continue -}}
|
{{- continue -}}
|
||||||
{{/* @todo notification into CLI that a network is configured but not supported */}}
|
{{/* @todo notification into CLI that a network is configured but not supported */}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- $options := (dict "context" $context "setup" $setup) }}
|
{{- $options := (dict "context" page "setup" $setup) }}
|
||||||
{{- $href := partialCached "func/social/getShareLink.html" $options $options -}}
|
{{- $href := partial "func/social/getShareLink.html" $options -}}
|
||||||
<a href="{{ $href }}"
|
<a href="{{ $href }}"
|
||||||
class="ananke-social-link {{ $setup.slug }} no-underline"
|
class="ananke-social-link {{ $setup.slug }} no-underline"
|
||||||
title="{{ $label }}" aria-label="{{ $label }}"
|
title="{{ $label }}" aria-label="{{ $label }}"
|
||||||
|
|
Loading…
Reference in a new issue