Add functioning site-wide dark mode

This commit is contained in:
2024-11-29 14:56:18 +01:00
parent 17de8b21e6
commit 44d8642e30
5 changed files with 100 additions and 9 deletions

View File

@@ -4,6 +4,5 @@
<p><a href="https://git.ivayloivanov.eu/ivo/hugo-theme-noteworthy" target="_blank" rel="noopener">{{ i18n "noteworthy_theme" }}</a></p>
<p><a href="https://gohugo.io" target="_blank" rel="noopener">{{ i18n "built_with_hugo" }}</a></p>
{{ $script := resources.Get "js/main.js" | minify | fingerprint -}}
<script src="{{ $script.Permalink }}" {{ printf "integrity=%q" $script.Data.Integrity | safeHTMLAttr }} crossorigin="anonymous"></script>
<script src="{{ "/" | relURL }}js/main.js"></script>
</footer>

View File

@@ -26,9 +26,6 @@
<!-- Modify the custom.css file inside static > css to use vanilla css -->
<link type="text/css" rel="stylesheet" href="{{ "/" | relURL }}css/custom.css">
<!-- Custom js -->
<script src="{{ "/" | relURL }}js/custom.js"></script>
<link rel="stylesheet" href="{{ "/" | relURL }}css/bootstrap.min.css">
{{ with .OutputFormats.Get "RSS" }}