Hugo-theme-stack/layouts/partials/footer/components/highlight.html
Jimmy Cai 96ff911c6e
feat(article): better syntax highlight style
Adapt to light & dark mode
2020-09-17 19:48:21 +02:00

4 lines
313 B
HTML

{{- $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)">