{{/* The row of share buttons, drawn under the title and again after the text. Four of these are ordinary links and work with scripting switched off: WhatsApp, Facebook, Bluesky and Mastodon all accept a URL that opens their own composer with the text already in it. Signal and Instagram do not, and no amount of wanting changes it. Signal has no web intent at all — it appears in the operating system's own share sheet and nowhere else — and Instagram cannot be handed a link by anybody, which is why every site that claims an Instagram share button is really offering a copied link. So both call `navigator.share()`, which opens that sheet with every installed app in it, and fall back to copying. They carry `hidden` until share.js removes it: a button that does nothing at all is worse than no button. The icons are simplified marks in one visual language rather than the official logo files. Reproducing those from memory gives something subtly wrong, and subtly wrong looks worse than plainly simple; each carries its name for a screen reader and in `title` for a cursor. Swapping in the real SVGs later is one file and no other change. */}} {{ $lang := .Site.Language.Lang }} {{ $url := .Permalink }} {{ $text := printf "%s — %s" .Title $url }} {{/* Encoded once, and marked safe so it is not encoded again. Go's template escaper treats an href as a URL and escapes it on the way out, so a value that arrived already encoded came through as %253A and %2b — a link that opens WhatsApp with the percent signs spelled out. */}} {{ $encText := $text | urlquery }} {{ $encUrl := $url | urlquery }} {{/* Without scripting the Mastodon button needs an instance to aim at, and the association's own is the only one this page knows. With scripting it asks the reader for theirs instead and remembers the answer. */}} {{ $masto := "" }} {{ with site.Data.site }}{{ with .social }}{{ with .mastodon }} {{ $masto = (urls.Parse .).Host }} {{ end }}{{ end }}{{ end }}