add mastodon
This commit is contained in:
parent
009d5a7ada
commit
656b8a1d6d
4 changed files with 4 additions and 2 deletions
|
@ -56,6 +56,7 @@ disqusShortname = 'YOUR_DISQUS_SHORTNAME' # add disqus comments
|
||||||
twitter = 'YOUR_TWITTER_ID' # twitter.com/YOUR_TWITTER_ID
|
twitter = 'YOUR_TWITTER_ID' # twitter.com/YOUR_TWITTER_ID
|
||||||
github = 'YOUR_GITHUB_ID' # github.com/YOUR_GITHUB_ID
|
github = 'YOUR_GITHUB_ID' # github.com/YOUR_GITHUB_ID
|
||||||
instagram = 'YOUR_INSTAGRAM_ID' # instagram.com/YOUR_INSTAGRAM_ID
|
instagram = 'YOUR_INSTAGRAM_ID' # instagram.com/YOUR_INSTAGRAM_ID
|
||||||
|
mastodon = 'YOUR_MASTODON_LINK' # mastodon.instance/@xxx
|
||||||
rss = true # show rss icon with link
|
rss = true # show rss icon with link
|
||||||
|
|
||||||
# home page profile
|
# home page profile
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
(print "linen"))) }}<!---->
|
(print "linen"))) }}<!---->
|
||||||
|
|
||||||
<!-- social_list -->
|
<!-- social_list -->
|
||||||
{{ $social_params := slice "twitter" "github" "instagram" "rss" }}<!---->
|
{{ $social_params := slice "twitter" "github" "instagram" "mastodon" "rss" }}<!---->
|
||||||
{{ range $social_params }}<!---->
|
{{ range $social_params }}<!---->
|
||||||
{{ if isset site.Params . }}<!---->
|
{{ if isset site.Params . }}<!---->
|
||||||
{{ $.Scratch.Add "social_list" (slice .) }}<!---->
|
{{ $.Scratch.Add "social_list" (slice .) }}<!---->
|
||||||
|
|
|
@ -82,7 +82,7 @@
|
||||||
<a
|
<a
|
||||||
class="h-8 w-8 [background:var(--url)_center_center/cover_no-repeat] lg:h-6 lg:w-6"
|
class="h-8 w-8 [background:var(--url)_center_center/cover_no-repeat] lg:h-6 lg:w-6"
|
||||||
style="--url: url(./{{ . }}.svg)"
|
style="--url: url(./{{ . }}.svg)"
|
||||||
href="{{ if eq . `rss` }} {{ `index.xml` | absURL }} {{ else }} https://{{ . }}.com/{{ site.Params.Get . }} {{ end }}"
|
href="{{ if eq . `rss` }} {{ `index.xml` | absURL }} {{ else if eq . `mastodon` }} https://{{ site.Params.Get . }} {{ else }} https://{{ . }}.com/{{ site.Params.Get . }} {{ end }}"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
></a>
|
></a>
|
||||||
{{ end }}<!---->
|
{{ end }}<!---->
|
||||||
|
|
1
static/mastodon.svg
Normal file
1
static/mastodon.svg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-7 -7 526 526"><path d="M214.5 1.1c-52.8 3-101.7 12.8-124.6 25-7.9 4.2-22.2 16.2-29.3 24.5-20 23.4-31.9 51.1-37.2 86.6-3.3 22.8-2.7 128.6 1.1 170.8 8.6 97.6 35.6 152.9 87.5 179.4 15.8 8.1 30.4 12.6 58.5 18 24.1 4.6 39.9 6 67.5 6 39.4 0 67.6-4.8 97-16.3l9.5-3.7-.3-13.9c-.1-7.7-.5-17.3-.8-21.3-.6-7-.7-7.3-2.7-6.8-6 1.8-29.4 6.7-38.7 8.1-23.4 3.6-66.6 2.9-88.8-1.4-34.8-6.8-52.6-24.7-57.1-57.5-1.3-9.3-1.4-15.6-.2-15.6.4 0 5.7 1.1 11.7 2.4 31.4 7 55.8 9.7 94.7 10.3 34.8.6 51.9-.3 83.7-4.3 31-3.9 51.5-9.6 73-20.4 27.7-13.9 51.9-36.6 58.9-55.4 9.2-24.6 16-133.2 11-175.6-5.1-43.3-24.2-81-52.7-104.1C422.7 25 409.1 19 384.6 13 341.7 2.4 274-2.3 214.5 1.1zm-11.9 88c8.7 2.2 16.9 6.2 24.9 12.2 7.9 5.9 12.2 11.3 20.2 24.9 3.6 6.2 7 11.9 7.6 12.6.7.9 3.1-2.3 8.6-11.7 8.5-14.2 11.9-18.5 19.5-24.9 28.4-23.6 75.2-19.9 101 7.8 11.3 12.2 17.3 26 20.1 46.1 2.1 14.7 3 70.6 2 119.1l-.7 35.8H354v-68.3c0-73.9-.1-75.1-5.5-85.8-3.4-6.5-9.4-12.5-15.8-15.4-16.9-7.9-35.2-.4-44.2 17.9-5.8 11.6-6.4 17.8-6.5 61.8V260h-51.9l-.3-43.3c-.4-41.2-.5-43.5-2.6-49.7-4-12-11.3-20.9-21.2-25.8-7.9-3.8-18.2-3.8-26.1.1-6.6 3.2-14.2 10.9-17 17.3-4.7 10.5-4.9 13.8-4.9 85.1V311h-51.7l-.8-57.3c-.9-74.3.5-99.8 6.4-117 7.8-22.6 24.8-39.1 48.1-46.6 13-4.2 28.6-4.6 42.6-1z"/></svg>
|
After Width: | Height: | Size: 1.3 KiB |
Loading…
Reference in a new issue