From 656b8a1d6de9ec0fd574cc004617619661370437 Mon Sep 17 00:00:00 2001 From: nanxiaobei Date: Sun, 25 Dec 2022 04:14:16 +0800 Subject: [PATCH] add mastodon --- README.md | 1 + layouts/_default/baseof.html | 2 +- layouts/partials/header.html | 2 +- static/mastodon.svg | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 static/mastodon.svg diff --git a/README.md b/README.md index c62348b..afb70c2 100755 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ disqusShortname = 'YOUR_DISQUS_SHORTNAME' # add disqus comments twitter = 'YOUR_TWITTER_ID' # twitter.com/YOUR_TWITTER_ID github = 'YOUR_GITHUB_ID' # github.com/YOUR_GITHUB_ID instagram = 'YOUR_INSTAGRAM_ID' # instagram.com/YOUR_INSTAGRAM_ID + mastodon = 'YOUR_MASTODON_LINK' # mastodon.instance/@xxx rss = true # show rss icon with link # home page profile diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index c8263f1..7b41d5f 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -11,7 +11,7 @@ (print "linen"))) }} -{{ $social_params := slice "twitter" "github" "instagram" "rss" }} +{{ $social_params := slice "twitter" "github" "instagram" "mastodon" "rss" }} {{ range $social_params }} {{ if isset site.Params . }} {{ $.Scratch.Add "social_list" (slice .) }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index fba05aa..a47a9ce 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -82,7 +82,7 @@ {{ end }} diff --git a/static/mastodon.svg b/static/mastodon.svg new file mode 100644 index 0000000..729af48 --- /dev/null +++ b/static/mastodon.svg @@ -0,0 +1 @@ +