diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 579c5f9..a416cd9 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -26,6 +26,7 @@ enableRobotsTXT = true github = "" gitlab = "" linkedin = "" + mastodon = "" # choose a background color from any on this page: http://tachyons.io/docs/themes/skins/ and preface it with "bg-" background_color_class = "bg-black" featured_image = "/images/gohugo-default-sample-hero-image.jpg" diff --git a/layouts/partials/social-follow.html b/layouts/partials/social-follow.html index 489e8cd..249a2a0 100644 --- a/layouts/partials/social-follow.html +++ b/layouts/partials/social-follow.html @@ -47,4 +47,10 @@ {{ partial "svg/medium.svg" (dict "size" $icon_size) }} {{- partial "new-window-icon.html" . -}} -{{ end }} \ No newline at end of file +{{ end }} +{{ with .Param "mastodon" }} + + {{ partial "svg/mastodon.svg" (dict "size" $icon_size) }} + {{- partial "new-window-icon.html" . -}} + +{{ end }} diff --git a/layouts/partials/svg/mastodon.svg b/layouts/partials/svg/mastodon.svg new file mode 100644 index 0000000..205345b --- /dev/null +++ b/layouts/partials/svg/mastodon.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/css/_social-icons.css b/src/css/_social-icons.css index dcd299e..59ed072 100644 --- a/src/css/_social-icons.css +++ b/src/css/_social-icons.css @@ -1,4 +1,4 @@ -.facebook, .twitter, .instagram, .youtube, .github, .gitlab, .linkedin, .medium { +.facebook, .twitter, .instagram, .youtube, .github, .gitlab, .linkedin, .medium, .mastodon { fill: #BABABA; } @@ -42,3 +42,7 @@ .medium:hover { fill: #0077b5 } + +.mastodon:hover { + fill: #3088d4; +} diff --git a/static/dist/css/app.955516233bcafa4d2a1c13cea63c7b50.css b/static/dist/css/app.955516233bcafa4d2a1c13cea63c7b50.css index be3f149..c0fa3f5 100644 --- a/static/dist/css/app.955516233bcafa4d2a1c13cea63c7b50.css +++ b/static/dist/css/app.955516233bcafa4d2a1c13cea63c7b50.css @@ -5894,7 +5894,7 @@ pre { margin-bottom: 1em; } -.facebook, .twitter, .instagram, .youtube, .github, .gitlab, .linkedin, .medium { +.facebook, .twitter, .instagram, .youtube, .github, .gitlab, .linkedin, .medium, .mastodon { fill: #BABABA; } @@ -5940,6 +5940,10 @@ pre { fill: #0077b5 } +.mastodon:hover { + fill: #3088d4; +} + /* Put your custom styles here and run `npm start` from the "src" directory on */ #TableOfContents ul li {