{{ if and .Site.Params.enablePostShare (.Params.share | default .Site.Params.displayPostShare) }} {{- $title := (partial "utils/title.html" (dict "$" . "title" .Title)).rawTitle -}} {{- $description := .Description | default (partial "utils/summary.html" .) | default .Site.Params.siteDescription | plainify | htmlUnescape -}} {{- $images := partial "utils/images.html" . -}} {{- $images = union $images (slice (.Site.Params.siteLogo | absURL)) -}} {{- $images = index $images 0 -}} {{- $hashtags := newScratch -}} {{- with .Params.tags -}} {{- range . -}} {{- $tag := . -}} {{- $url := urls.Parse (. | urlize) -}} {{- $path := $url.Path -}} {{- with $.Site.GetPage (printf `/tags/%s` $path) -}} {{- $hashtags.Add "tags" (replace (.LinkTitle | default $tag) " " "") -}} {{- end -}} {{- $hashtags.Add "tags" "," -}} {{- end -}} {{- end -}} {{- $hashtags.Set "firsttag" "%23" -}} {{- $hashtags.Add "firsttag" (index (split ($hashtags.Get "tags") ",") 0) -}}