Skip to content

Commit

Permalink
head tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
djmonkeyuk committed Oct 18, 2024
1 parent 9cf8c64 commit 1746c52
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@
{{ end }}

<!-- CSS -->
<!-- {{ if hugo.IsServer }} -->
{{ if hugo.IsServer }}
{{ $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "scss/main.scss" . | toCSS (dict "targetPath" "css/main.css" "outputStyle" "compressed" "enableSourceMap" false) }}
<link rel="stylesheet" href="{{ ($style).RelPermalink }}">
<!-- {{ else }} -->
<!-- {{ $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "scss/main.scss" . | toCSS (dict "targetPath" "css/main.css" "enableSourceMap" false) }}
{{ else }}
{{ $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "scss/main.scss" . | toCSS (dict "targetPath" "css/main.css" "enableSourceMap" false) }}
<link rel="stylesheet" href="{{ ($style | minify).RelPermalink }}">
{{ end }} -->
<!-- {{ if hugo.IsServer }} -->
{{ end }}
{{ if hugo.IsServer }}
{{ $noscript := resources.Get "sass/noscript.scss" | resources.ExecuteAsTemplate "noscript.scss" . | toCSS (dict "targetPath" "css/noscript.css" "enableSourceMap" false) }}
<noscript><link rel="stylesheet" href="{{ ($noscript).RelPermalink }}" /></noscript>
<!-- {{ else }} -->
<!-- {{ $noscript := resources.Get "sass/noscript.scss" | resources.ExecuteAsTemplate "noscript.scss" . | toCSS (dict "targetPath" "css/noscript.css" "enableSourceMap" false) }} -->
<!-- <noscript><link rel="stylesheet" href="{{ ($noscript | minify).RelPermalink }}" /></noscript> -->
<!-- {{end}} -->
{{ else }}
{{ $noscript := resources.Get "sass/noscript.scss" | resources.ExecuteAsTemplate "noscript.scss" . | toCSS (dict "targetPath" "css/noscript.css" "enableSourceMap" false) }}
<noscript><link rel="stylesheet" href="{{ ($noscript | minify).RelPermalink }}" /></noscript>
{{end}}

<!-- FontAwesome CSS -->
{{ range .Site.Params.asset.fontawesome_css -}}
Expand Down

0 comments on commit 1746c52

Please sign in to comment.