Skip to content

Commit

Permalink
Add StackOverflow social (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsgv authored and Bud Parr committed Jan 10, 2020
1 parent 813de5c commit 505b255
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data/webpack_assets.json
@@ -1,6 +1,6 @@
{
"app": {
"js": "js/app.3fc0f988d21662902933.js",
"css": "css/app.d98f2eb6bcd1eaedb7edf166bd16af26.css"
"css": "css/app.3f5912c237ddd38c8e76debe081c7ca7.css"
}
}
1 change: 1 addition & 0 deletions exampleSite/config.toml
Expand Up @@ -28,6 +28,7 @@ enableRobotsTXT = true
linkedin = ""
mastodon = ""
slack = ""
stackoverflow = ""
# 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
6 changes: 6 additions & 0 deletions layouts/partials/social-follow.html
@@ -1,5 +1,11 @@
<!-- TODO: Add follow intents where available TODO: Revisit color and hover color -->
{{ $icon_size := "32px" }}
{{ with .Param "stackoverflow" }}
<a href="{{ . }}" target="_blank" class="link-transition stackoverflow link dib z-999 pt3 pt0-l mr1" title="Stack Overflow link" rel="noopener" aria-label="follow on Stack Overflow——Opens in a new window">
{{ partial "svg/stackoverflow.svg" (dict "size" $icon_size) }}
{{- partial "new-window-icon.html" . -}}
</a>
{{ end }}
{{ with .Param "facebook" }}
<a href="{{ . }}" target="_blank" class="link-transition facebook link dib z-999 pt3 pt0-l mr1" title="Facebook link" rel="noopener" aria-label="follow on Facebook——Opens in a new window">
{{ partial "svg/facebook.svg" (dict "size" $icon_size) }}
Expand Down
8 changes: 8 additions & 0 deletions layouts/partials/svg/stackoverflow.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion src/css/_social-icons.css
@@ -1,4 +1,4 @@
.facebook, .twitter, .instagram, .youtube, .github, .gitlab, .linkedin, .medium, .mastodon, .slack {
.facebook, .twitter, .instagram, .youtube, .github, .gitlab, .linkedin, .medium, .mastodon, .slack, .stackoverflow {
fill: #BABABA;
}

Expand Down Expand Up @@ -51,3 +51,6 @@
fill: #E01E5A;
}

.stackoverflow:hover {
fill: #f48024;
}
3 changes: 3 additions & 0 deletions stackbit.yaml
Expand Up @@ -92,6 +92,9 @@ models:
- type: string
name: facebook
label: Facebook
- type: string
name: stackoverflow
label: StackOverflow
- type: string
name: twitter
label: Twitter
Expand Down

Large diffs are not rendered by default.

0 comments on commit 505b255

Please sign in to comment.