Skip to content

Commit

Permalink
fix: update css.html
Browse files Browse the repository at this point in the history
  • Loading branch information
atsuyaw committed Oct 31, 2023
1 parent 4bed796 commit 7b69701
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions v4/layouts/partials/css.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
{{ $darkCss := resources.Get "sass/dark-theme.scss" | resources.ExecuteAsTemplate "dark-theme.scss" . | toCSS $darkOptions }}

{{ if or (.Site.IsServer) (eq hugo.Environment "development") }}
<link rel="stylesheet" href="{{ $css.Permalink }}" media="screen">
<link rel="stylesheet" disabled id="dark-theme-css" href="{{ $darkCss.Permalink }}" media="screen">
<link rel="stylesheet" href="{{ $css.Permalink }}" media="screen">
<link disabled id="dark-theme-css" rel="stylesheet" href="{{ $darkCss.Permalink }}" media="screen">
{{ else }}
{{ $css := $css | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $css.Permalink }}" integrity="{{ $css.Data.Integrity }}" media="screen">
{{ $darkCss := $darkCss | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" disabled id="dark-theme-css" href="{{ $darkCss.Permalink }}" integrity="{{ $css.Data.Integrity }}" media="screen">
{{ $css := $css | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $css.Permalink }}" integrity="{{ $css.Data.Integrity }}" media="screen">
{{ $darkCss := $darkCss | resources.Minify | resources.Fingerprint }}
<link disabled id="dark-theme-css" rel="stylesheet" href="{{ $darkCss.Permalink }}" integrity="{{ $darkCss.Data.Integrity }}" media="screen">
{{ end }}

{{ if isset .Site.Params "css_modules" }}
Expand Down

0 comments on commit 7b69701

Please sign in to comment.