diff options
author | Caio Lente <7017340+clente@users.noreply.github.com> | 2023-10-27 19:31:22 -0300 |
---|---|---|
committer | Caio Lente <7017340+clente@users.noreply.github.com> | 2023-10-27 19:31:22 -0300 |
commit | 488fcc401fa605a5d79fbf98754556de2cf09d18 (patch) | |
tree | aa3fbbcee5a1d6204a6c05be82ab4370f03bacbc /layouts/_default/baseof.html | |
parent | 20cbc4a5ae79efe1d442a37cc4fccfb498e433f3 (diff) | |
parent | a3f09559e465ea1255baf83345fc7fd1b2da62b3 (diff) | |
download | hugo-bearcub-488fcc401fa605a5d79fbf98754556de2cf09d18.tar.gz hugo-bearcub-488fcc401fa605a5d79fbf98754556de2cf09d18.tar.bz2 |
Merge remote-tracking branch 'origin/main' into style/herman
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 bddfe68..e5c4f01 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -14,8 +14,10 @@ {{ $style := resources.Get "herman.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 }} |