# HG changeset patch # Node ID 318634cd7b9a # Parent 0cc9c1a3b272 diff --git a/hugo/config.toml b/hugo/config.toml --- a/hugo/config.toml +++ b/hugo/config.toml @@ -69,6 +69,14 @@ url = "https://shop.spreadshirt.com/imfreedom" weight = 1000 +[[menu.shortcuts]] + name = " Mastodon" + identifier = "mastodon" + url = "https://fosstodon.org/@pidgin" + weight = 9000 + [menu.shortcuts.params] + rel = "me" + [security] [security.funcs] diff --git a/hugo/content/contact/_index.md b/hugo/content/contact/_index.md --- a/hugo/content/contact/_index.md +++ b/hugo/content/contact/_index.md @@ -35,6 +35,7 @@ Of course we also have a presence on social media! - [Facebook](https://www.facebook.com/pidgin.im/) + - [Mastodon](https://fosstodon.org/@pidgin) - [Reddit](https://reddit.com/r/pidgin) - [Twitter](https://twitter.com/impidgin) diff --git a/hugo/layouts/partials/menu.html b/hugo/layouts/partials/menu.html new file mode 100644 --- /dev/null +++ b/hugo/layouts/partials/menu.html @@ -0,0 +1,152 @@ + + + +{{ define "section-tree-nav" }} +{{ $showvisitedlinks := .showvisitedlinks }} +{{ $currentNode := .currentnode }} +{{ $currentFileUniqueID := "" }} +{{ with $currentNode.File }}{{ $currentFileUniqueID = .UniqueID }}{{ end }} + {{with .sect}} + {{if and .IsSection (or (not .Params.hidden) $.showhidden)}} + {{safeHTML .Params.head}} +