diff options
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/footer/components/highlight.html | 4 | ||||
-rw-r--r-- | layouts/partials/footer/include.html | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/layouts/partials/footer/components/highlight.html b/layouts/partials/footer/components/highlight.html new file mode 100644 index 0000000..d428695 --- /dev/null +++ b/layouts/partials/footer/components/highlight.html @@ -0,0 +1,4 @@ +{{- $light := resources.Get "css/highlight/light.css" | minify -}} +{{- $dark := resources.Get "css/highlight/dark.css" | minify -}} +<link rel="stylesheet" href="{{ $light.Permalink }}" media="(prefers-color-scheme: light)"> +<link rel="stylesheet" href="{{ $dark.Permalink }}" media="(prefers-color-scheme: dark)">
\ No newline at end of file diff --git a/layouts/partials/footer/include.html b/layouts/partials/footer/include.html index 4b50a88..ffa7573 100644 --- a/layouts/partials/footer/include.html +++ b/layouts/partials/footer/include.html @@ -1,3 +1,4 @@ {{ partialCached "footer/components/script.html" . }} {{ partialCached "footer/components/custom-font.html" . }} +{{ partialCached "footer/components/highlight.html" . }} {{ partial "footer/custom.html" . }}
\ No newline at end of file |