Site.Param format
This commit is contained in:
parent
b01747cbe0
commit
122e87c70c
@ -6,9 +6,7 @@
|
|||||||
|
|
||||||
{{ $facebook_href := printf "https://www.facebook.com/sharer.php?u=%s" $url }}
|
{{ $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 }}
|
{{ $twitter_href := printf "https://twitter.com/intent/tweet?url=%s&text=%s" $url $title }}
|
||||||
{{ with site.params }}
|
{{ $twitter_href = printf "%s&via=%s" %twitter_href .Site.Param "twitter" }}
|
||||||
{{ $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 }}
|
{{ $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 }}
|
{{ $hrefs := dict "facebook" $facebook_href "twitter" $twitter_href "linkedin" $linkedin_href }}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user