Skip to content

Commit cde5767

Browse files
Add external link icon (#8)
Co-authored-by: Ben Spitz <diracdeltafunk@users.noreply.github.com>
1 parent d899921 commit cde5767

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

_includes/external-link.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height="0.8em" width="0.8em" fill="currentcolor"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l82.7 0L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3l0 82.7c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160c0-17.7-14.3-32-32-32L320 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z"/></svg>

_layouts/default.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,15 @@
6363
<a href="/projects/">Projects</a>
6464
{% endif %}
6565

66-
<a href="{{site.github_url}}">GitHub</a>
66+
<a href="{{site.github_url}}">
67+
GitHub
68+
{% include external-link.html %}
69+
</a>
6770

68-
<a href="{{site.zulip_url}}">Zulip</a>
71+
<a href="{{site.zulip_url}}">
72+
Zulip
73+
{% include external-link.html %}
74+
</a>
6975

7076
</nav>
7177

0 commit comments

Comments
 (0)