Skip to content

Commit

Permalink
Add a link to "mastodon" (#159)
Browse files Browse the repository at this point in the history
* Create fr.toml

French translation

* Social link to "mastodon" added
  • Loading branch information
echarp authored and Bud Parr committed Mar 4, 2019
1 parent e07ddcc commit 8b348e6
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 3 deletions.
1 change: 1 addition & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 7 additions & 1 deletion layouts/partials/social-follow.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,10 @@
{{ partial "svg/medium.svg" (dict "size" $icon_size) }}
{{- partial "new-window-icon.html" . -}}
</a>
{{ end }}
{{ end }}
{{ with .Param "mastodon" }}
<a href="{{ . }}" target="_blank" class="link-transition mastodon link dib z-999 pt3 pt0-l mr1" title="Mastodon link" rel="noopener" aria-label="follow on Mastodon——Opens in a new window">
{{ partial "svg/mastodon.svg" (dict "size" $icon_size) }}
{{- partial "new-window-icon.html" . -}}
</a>
{{ end }}
4 changes: 4 additions & 0 deletions layouts/partials/svg/mastodon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion src/css/_social-icons.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.facebook, .twitter, .instagram, .youtube, .github, .gitlab, .linkedin, .medium {
.facebook, .twitter, .instagram, .youtube, .github, .gitlab, .linkedin, .medium, .mastodon {
fill: #BABABA;
}

Expand Down Expand Up @@ -42,3 +42,7 @@
.medium:hover {
fill: #0077b5
}

.mastodon:hover {
fill: #3088d4;
}
6 changes: 5 additions & 1 deletion static/dist/css/app.955516233bcafa4d2a1c13cea63c7b50.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 8b348e6

Please sign in to comment.