add darkmode

This commit is contained in:
Ben Charlton 2024-07-05 21:32:23 +01:00
parent 1f1b97a4eb
commit 37d8e1c19a
7 changed files with 538 additions and 671 deletions

View file

@ -40,10 +40,16 @@
<section class="social-icons">
{{ range $item := .Site.Params.socialIcons }}
<a href="{{ $item.url }}" rel="me" title="{{ $item.title }}" target="_blank">
<!-- i class="{{ $item.icon }}" aria-hidden="true"></i -->
<img src='/fa/svgs/{{ $item.icon }}.svg' style='width:32px; height:32px; display:inline; filter:invert(100%)'>
<img src='/fa/svgs/{{ $item.icon }}.svg' style='width:32px; height:32px; display:inline; filter:invert(100%)'>
</a>
{{ end }}
</section>
<section></section>
<a class="colour-toggle" href="javascript:toggleColorScheme();">
<span id="toggle-light">light mode</span>
<span id="toggle-dark">dark mode</span>
</a>
</section>
</div>
</aside>