mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 09:12:47 +00:00
Add strava social icon
This commit is contained in:
parent
505b255923
commit
bae01b8d18
@ -1,6 +1,6 @@
|
||||
{
|
||||
"app": {
|
||||
"js": "js/app.3fc0f988d21662902933.js",
|
||||
"css": "css/app.3f5912c237ddd38c8e76debe081c7ca7.css"
|
||||
"css": "css/app.bc20b5435312ad8378d94eaeacc9cc6a.css"
|
||||
}
|
||||
}
|
@ -29,6 +29,7 @@ enableRobotsTXT = true
|
||||
mastodon = ""
|
||||
slack = ""
|
||||
stackoverflow = ""
|
||||
strava = ""
|
||||
# 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"
|
||||
|
@ -66,3 +66,10 @@
|
||||
{{- partial "new-window-icon.html" . -}}
|
||||
</a>
|
||||
{{ 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 }}
|
||||
|
||||
|
3
layouts/partials/svg/strava.svg
Normal file
3
layouts/partials/svg/strava.svg
Normal 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 |
@ -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;
|
||||
}
|
||||
|
||||
@ -54,3 +54,7 @@
|
||||
.stackoverflow:hover {
|
||||
fill: #f48024;
|
||||
}
|
||||
|
||||
.strava:hover {
|
||||
fill: #f93a06;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
3
static/dist/css/app.bc20b5435312ad8378d94eaeacc9cc6a.css
vendored
Normal file
3
static/dist/css/app.bc20b5435312ad8378d94eaeacc9cc6a.css
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user