Skip to content

Commit 5692120

Browse files
committed
Mastodon verification and future proofing
1 parent b4f5c00 commit 5692120

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!--
2+
Copyright (c) 2016-2022 Martin Donath <[email protected]>
3+
4+
Permission is hereby granted, free of charge, to any person obtaining a copy
5+
of this software and associated documentation files (the "Software"), to
6+
deal in the Software without restriction, including without limitation the
7+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8+
sell copies of the Software, and to permit persons to whom the Software is
9+
furnished to do so, subject to the following conditions:
10+
11+
The above copyright notice and this permission notice shall be included in
12+
all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
17+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20+
IN THE SOFTWARE.
21+
-->
22+
23+
<!-- Social links -->
24+
<div class="md-social">
25+
{% for social in config.extra.social %}
26+
{% set title = social.name %}
27+
{% if not title and "//" in social.link %}
28+
{% set _, url = social.link.split("//") %}
29+
{% set title = url.split("/")[0] %}
30+
{% endif %}
31+
<a
32+
href="{{ social.link }}"
33+
target="_blank" rel="noopener me"
34+
title="{{ title | e }}"
35+
class="md-social__link"
36+
>
37+
{% include ".icons/" ~ social.icon ~ ".svg" %}
38+
</a>
39+
{% endfor %}
40+
</div>

mkdocs.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ theme:
2626
- toc.follow
2727
- search.suggest
2828
- search.highlight
29-
- search.share
29+
- search.share
30+
- content.code.copy
31+
- navigation.footer
32+
- content.action.edit
33+
- content.action.view
34+
3035
palette:
3136

3237
# Light mode

0 commit comments

Comments
 (0)