Correction to partial-formatting

This commit is contained in:
Jack Jackson 2024-12-28 14:50:54 -08:00
parent a945f0bce0
commit b01747cbe0

View File

@ -6,8 +6,8 @@
{{ $facebook_href := printf "https://www.facebook.com/sharer.php?u=%s" $url }}
{{ $twitter_href := printf "https://twitter.com/intent/tweet?url=%s&text=%s" $url $title }}
{{ with site.params.twitter }}
{{ $twitter_href = printf "%s&via=%s" $twitter_href . }}
{{ with site.params }}
{{ $twitter_href = printf "%s&via=%s" $twitter_href .twitter }}
{{ end }}
{{ $linkedin_href := printf "https://www.linkedin.com/shareArticle?mini=true&url=%s&title=%s" $url $title }}
{{ $hrefs := dict "facebook" $facebook_href "twitter" $twitter_href "linkedin" $linkedin_href }}