Skip to content

Commit ece6208

Browse files
authored
Add Mastodon link to website (#138)
* Add Mastodon link to website * run formatter
1 parent b53b736 commit ece6208

File tree

3 files changed

+27
-6
lines changed

3 files changed

+27
-6
lines changed

config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title = 'MapLibre'
44

55
sectionPagesMenu = "main"
66

7-
copyright = "Creative Commons Zero v1.0 Universal"
7+
copyright = "CC0"
88

99
enableGitInfo = true
1010
summaryLength = 30

layouts/partials/footer.html

+24-5
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</div>
1616
<div class="container border-top border-gray">
1717
<div class="row py-3">
18-
<div class="col-sm-4">
18+
<div class="col-sm-6">
1919
<div class="nav">
2020
{{ range .menu }}
2121
<li>
@@ -27,18 +27,18 @@
2727
</div>
2828
</div>
2929

30-
<div class="col-sm-4">
30+
<div class="col-sm-1">
3131
{{/* Display copyright if available */}}
3232
{{ with .copyright }}
33-
<div class="d-flex justify-content-center text-black-50">
33+
<div class="d-flex justify-content-center text-black-50 nav-link">
3434
{{- . -}}
3535
</div>
3636
{{ end }}
3737
</div>
3838

3939
<div class="col-sm-2 flex">
4040
{{ with .githubProjectUrl }}
41-
<div class="text-black-50 d-flex justify-content-center">
41+
<div class="text-black-50 d-flex justify-content-center nav-link">
4242
<a class="text-black-50" href="{{ . }}">GitHub</a>
4343
{{ with $.gitinfo }}
4444
@
@@ -52,8 +52,27 @@
5252
{{ end }}
5353
</div>
5454

55-
<div class="col-sm-2">
55+
<div class="col-sm-3">
5656
<div class="nav justify-content-end">
57+
<a
58+
class="nav-link text-black-50"
59+
href="https://mastodon.social/@maplibre"
60+
aria-label="MapLibre on Mastodon"
61+
>
62+
<svg
63+
id="mas"
64+
viewBox="0 0 16 16"
65+
width="16"
66+
height="16"
67+
xmlns="http://www.w3.org/2000/svg"
68+
>
69+
<path
70+
fill="#979DA6"
71+
d="M 15.659 9.592 C 15.424 10.72 13.553 11.956 11.404 12.195 C 10.283 12.32 9.18 12.434 8.003 12.384 C 6.079 12.302 4.56 11.956 4.56 11.956 C 4.56 12.13 4.572 12.297 4.595 12.452 C 4.845 14.224 6.478 14.33 8.025 14.379 C 9.586 14.429 10.976 14.02 10.976 14.02 L 11.04 15.337 C 11.04 15.337 9.948 15.884 8.003 15.984 C 6.93 16.039 5.598 15.959 4.047 15.576 C 0.683 14.746 0.104 11.4 0.015 8.006 C -0.012 6.998 0.005 6.048 0.005 5.253 C 0.005 1.782 2.443 0.765 2.443 0.765 C 3.672 0.238 5.782 0.017 7.975 0 L 8.029 0 C 10.221 0.017 12.332 0.238 13.561 0.765 C 13.561 0.765 15.999 1.782 15.999 5.253 C 15.999 5.253 16.03 7.814 15.659 9.592 Z M 13.124 5.522 L 13.124 9.725 L 11.339 9.725 L 11.339 5.646 C 11.339 4.786 10.951 4.35 10.175 4.35 C 9.317 4.35 8.887 4.867 8.887 5.891 L 8.887 8.124 L 7.113 8.124 L 7.113 5.891 C 7.113 4.867 6.683 4.35 5.825 4.35 C 5.049 4.35 4.661 4.786 4.661 5.646 L 4.661 9.725 L 2.876 9.725 L 2.876 5.522 C 2.876 4.663 3.111 3.981 3.582 3.476 C 4.067 2.971 4.703 2.712 5.493 2.712 C 6.406 2.712 7.098 3.039 7.555 3.695 L 8 4.39 L 8.445 3.695 C 8.902 3.039 9.594 2.712 10.507 2.712 C 11.297 2.712 11.933 2.971 12.418 3.476 C 12.889 3.981 13.124 4.663 13.124 5.522 Z"
72+
style="stroke:none;stroke-miterlimit:10;fill-rule:evenodd;"
73+
/>
74+
</svg>
75+
</a>
5776
<a
5877
class="nav-link text-black-50"
5978
href="https://twitter.com/maplibre"

layouts/partials/head.html

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
<meta name="twitter:image:src" content="/img/share-image.png" />
2424
<meta name="twitter:image:alt" content="MapLibre" />
2525

26+
<link rel="me" href="https://mastodon.social/@maplibre" />
27+
2628
{{ $options := (dict "includePaths" (slice "node_modules") "transpiler" "libsass") }}
2729
{{ $style := resources.Get "style.scss" | resources.ToCSS $options | resources.Minify |
2830
resources.Fingerprint

0 commit comments

Comments
 (0)