From 473c7c14c68d3e5a97dee31138a2b176c7ac2302 Mon Sep 17 00:00:00 2001 From: Melroy van den Berg Date: Thu, 24 Oct 2024 11:58:58 +0200 Subject: [PATCH] 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 Signed-off-by: Patrick Kollitsch <83281+davidsneighbour@users.noreply.github.com> Co-authored-by: Patrick Kollitsch <83281+davidsneighbour@users.noreply.github.com> --- layouts/partials/social/share.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/social/share.html b/layouts/partials/social/share.html index ef0fe7e..6a30baa 100644 --- a/layouts/partials/social/share.html +++ b/layouts/partials/social/share.html @@ -33,8 +33,8 @@ {{- continue -}} {{/* @todo notification into CLI that a network is configured but not supported */}} {{- end -}} - {{- $options := (dict "context" $context "setup" $setup) }} - {{- $href := partialCached "func/social/getShareLink.html" $options $options -}} + {{- $options := (dict "context" page "setup" $setup) }} + {{- $href := partial "func/social/getShareLink.html" $options -}}