Sfoglia il codice sorgente

Add strava social icon

pull/244/head
Daniel Corin 5 anni fa
parent
commit
bae01b8d18

+ 1
- 1
data/webpack_assets.json Vedi File

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

+ 1
- 0
exampleSite/config.toml Vedi File

@@ -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"

+ 7
- 0
layouts/partials/social-follow.html Vedi File

@@ -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
- 0
layouts/partials/svg/strava.svg Vedi 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>

+ 5
- 1
src/css/_social-icons.css Vedi 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;
}

@@ -54,3 +54,7 @@
.stackoverflow:hover {
fill: #f48024;
}

.strava:hover {
fill: #f93a06;
}

+ 0
- 3
static/dist/css/app.3f5912c237ddd38c8e76debe081c7ca7.css
File diff soppresso perché troppo grande
Vedi File


+ 3
- 0
static/dist/css/app.bc20b5435312ad8378d94eaeacc9cc6a.css
File diff soppresso perché troppo grande
Vedi File


Loading…
Annulla
Salva