Add strava social icon

This commit is contained in:
Daniel Corin 2020-01-23 07:54:17 -08:00
parent 505b255923
commit bae01b8d18
7 changed files with 20 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{ {
"app": { "app": {
"js": "js/app.3fc0f988d21662902933.js", "js": "js/app.3fc0f988d21662902933.js",
"css": "css/app.3f5912c237ddd38c8e76debe081c7ca7.css" "css": "css/app.bc20b5435312ad8378d94eaeacc9cc6a.css"
} }
} }

View File

@ -29,6 +29,7 @@ enableRobotsTXT = true
mastodon = "" mastodon = ""
slack = "" slack = ""
stackoverflow = "" stackoverflow = ""
strava = ""
# choose a background color from any on this page: http://tachyons.io/docs/themes/skins/ and preface it with "bg-" # 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" background_color_class = "bg-black"
featured_image = "/images/gohugo-default-sample-hero-image.jpg" featured_image = "/images/gohugo-default-sample-hero-image.jpg"

View File

@ -66,3 +66,10 @@
{{- partial "new-window-icon.html" . -}} {{- partial "new-window-icon.html" . -}}
</a> </a>
{{ end }} {{ end }}
{{ with .Param "strava" }}
<a href="{{ . }}" target="_blank" class="link-transition strava link dib z-999 pt3 pt0-l mr1" title="Strava link" rel="noopener" aria-label="follow on Strava——Opens in a new window">
{{ partial "svg/strava.svg" (dict "size" $icon_size) }}
{{- partial "new-window-icon.html" . -}}
</a>
{{ end }}

View File

@ -0,0 +1,3 @@
<svg {{ with .size }} height="{{ . }}" {{ end }} style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512" width="{{ .size }}" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path d="M256,0 C397.376,0 512,114.624 512,256 C512,397.376 397.376,512 256,512 C114.624,512 0,397.376 0,256 C0,114.624 114.624,0 256,0 Z M228.5,282 L308.749975,440 L388.5,282 L340.148124,282 L308.749179,345.343408 L276.850284,282 L339.5,282 L232.42767,73 L124.5,282 L188.088007,282 L232.42767,198.900783 L276.411868,282 L228.5,282 Z" style="fill-rule:evenodd;clip-rule:evenodd;fill:{{ .fill }};"/>
</svg>

After

Width:  |  Height:  |  Size: 658 B

View File

@ -1,4 +1,4 @@
.facebook, .twitter, .instagram, .youtube, .github, .gitlab, .linkedin, .medium, .mastodon, .slack, .stackoverflow { .facebook, .twitter, .instagram, .youtube, .github, .gitlab, .linkedin, .medium, .mastodon, .slack, .stackoverflow, .strava {
fill: #BABABA; fill: #BABABA;
} }
@ -54,3 +54,7 @@
.stackoverflow:hover { .stackoverflow:hover {
fill: #f48024; fill: #f48024;
} }
.strava:hover {
fill: #f93a06;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long