Browse Source

garmin activity link enabled

master
Chris 2 years ago
parent
commit
d1d6a60aa3
  1. 1
      config.toml
  2. 6
      layouts/partials/social-activity.html
  3. 6
      layouts/partials/social-follow.html
  4. 40
      layouts/partials/svg/garmin.svg

1
config.toml

@ -44,6 +44,7 @@ archetypeDir = "../kollegen-posts/archetypes"
gitea = "https://kollegen.uber.space/gitea/kollegenrunde/kollegen-posts"
gitlab = ""
strava = "https://www.strava.com/clubs/kollegenrunde"
garmin = "https://connect.garmin.com/modern/group/3195407"
linkedin = ""
mastodon = ""
slack = ""

6
layouts/partials/social-activity.html

@ -17,3 +17,9 @@
{{ partial "svg/velohero.svg" (dict "size" $icon_size) }}
</a>
{{ end }}
{{ with .Param "garmin_activity" }}
<a href="{{ . }}" target="_blank" class="link-transition facebook link dib z-999 pt3 pt0-l mr1" title="Garmin-Aktivität" rel="noopener" aria-label="Track on Garmin Connect——Opens in a new window">
{{ partial "svg/garmin.svg" (dict "size" $icon_size) }}
</a>
{{ end }}

6
layouts/partials/social-follow.html

@ -6,6 +6,12 @@
{{- partial "new-window-icon.html" . -}}
</a>
{{ end }}
{{ with .Param "garmin" }}
<a href="{{ . }}" target="_blank" class="link-transition gitlab link dib z-999 pt3 pt0-l mr1" title="Unser Garmin-Club" rel="noopener" aria-label="Unser Garmin Club——Opens in a new window">
{{ partial "svg/garmin.svg" (dict "size" $icon_size) }}
{{- partial "new-window-icon.html" . -}}
</a>
{{ end }}
{{ 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) }}

40
layouts/partials/svg/garmin.svg

@ -0,0 +1,40 @@
<svg {{ with .size }}
height="{{ . }}" {{ end }}
style="enable-background:new 0 0 100 100;"
version="1.1"
viewBox="0 0 100 100"
width="{{ .size }}"
xml:space="preserve" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<g
id="g2247"
transform="matrix(3.0403395,0,0,3.0403395,-720.82231,0)"
style="fill-rule:evenodd;clip-rule:evenodd;">
<g
id="g2249"
style="fill-rule:evenodd;clip-rule:evenodd;">
<defs
id="defs2251">
<path
d="M 265.682,27.688 239.69,27.687 c -0.953,0 -1.771,-0.474 -2.247,-1.299 -0.476,-0.825 -0.476,-1.769 10e-4,-2.594 L 250.441,1.296 C 250.917,0.472 251.734,0 252.687,0 c 0.952,0 1.77,0.472 2.246,1.296 l 12.995,22.499 c 0.478,0.825 0.478,1.77 10e-4,2.595 -0.476,0.824 -1.294,1.298 -2.247,1.298 z"
id="XMLID_1_" />
</defs>
<path
d="m 265.682,27.688 c -8.72299,-0.004 -17.44621,0.0067 -26.16905,-0.0065 -1.92457,-0.02958 -3.12092,-2.489356 -1.98548,-4.031957 4.33714,-7.500347 8.66172,-15.0082173 13.00673,-22.5038637 0.98691,-1.65150549 3.71307,-1.45740513 4.48225,0.2948344 4.33032,7.5043733 8.67294,15.0018843 12.99557,22.5105463 0.88998,1.640456 -0.46631,3.81037 -2.33002,3.736965 z"
id="use2254"
style="fill-rule:evenodd;clip-rule:evenodd;" />
<clipPath
id="XMLID_3_">
<use
id="use2257"
x="0"
y="0"
width="289.12399"
height="77.842003"
xlink:href="#XMLID_1_" />
</clipPath>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

Loading…
Cancel
Save