diff options
author | Caio Lente <7017340+clente@users.noreply.github.com> | 2023-10-27 19:30:53 -0300 |
---|---|---|
committer | Caio Lente <7017340+clente@users.noreply.github.com> | 2023-10-27 19:30:53 -0300 |
commit | a3f09559e465ea1255baf83345fc7fd1b2da62b3 (patch) | |
tree | f12cfdc10beeb25ad0b6a7324a85ea988f1abccc /layouts/_default/baseof.html | |
parent | 95746b151da25f80068d0fd70435b40906e53824 (diff) | |
download | hugo-bearcub-a3f09559e465ea1255baf83345fc7fd1b2da62b3.tar.gz hugo-bearcub-a3f09559e465ea1255baf83345fc7fd1b2da62b3.tar.bz2 |
Conditional CSS
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r-- | layouts/_default/baseof.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index fdfa47c..475d6f9 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -14,8 +14,10 @@ {{ $style := resources.Get "style.css" | minify }} <link href="{{ $style.RelPermalink }}" rel="stylesheet"> - {{ $syntax := resources.Get "syntax.css" | minify }} - <link href="{{ $syntax.RelPermalink }}" rel="stylesheet"> + {{ if (.Page.Store.Get "hasCodeBlock") }} + {{ $syntax := resources.Get "syntax.css" | minify }} + <link href="{{ $syntax.RelPermalink }}" rel="stylesheet"> + {{ end }} {{ with .Params.style }} {{ $extra := resources.Get . | minify }} |