Skip to content

Commit 5f731a2

Browse files
committed
Add support for day/night to footer icons
1 parent 598551c commit 5f731a2

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

assets/scss/components/_footer.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ footer {
99
.social {
1010
justify-content: center;
1111

12-
img {
12+
svg {
1313
max-width: 2rem;
1414
}
1515
}

layouts/partials/footer.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
{{ with $url }}
2727
<li>
2828
<a href="{{ . }}" target="_blank" rel="noopener noreferrer">
29-
<img src="{{ "icons/" | relURL }}{{ $icon }}" alt="{{ $key }} icon" />
29+
{{ $svgPath := printf "static/icons/%s" $icon }}
30+
{{ readFile $svgPath | safeHTML }}
3031
</a>
3132
</li>
3233
{{ end }}

0 commit comments

Comments
 (0)