Skip to content

Commit c0f05ed

Browse files
committed
Upgrade hugo syntax
1 parent 0a83f96 commit c0f05ed

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

layouts/_default/baseof.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<!DOCTYPE html>
22
<html lang="{{ .Site.LanguageCode }}">
33
<head>
4-
{{ partial "meta.html" . }}
54
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
65
{{ partial "css.html" . }}
76
{{ $options := (dict "targetPath" "custom.css" "outputStyle" "compressed" "enableSourceMap" true) }}
@@ -23,5 +22,5 @@
2322
{{ partial "javascript.html" . }}
2423
</body>
2524

26-
{{ partial "analytics.html" }}
25+
<!-- {{ partial "analytics.html" }} -->
2726
</html>

layouts/_default/single.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<!DOCTYPE html>
22
<html lang="{{ .Site.LanguageCode }}">
33
<head>
4-
{{ partial "meta.html" . }}
54
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
65
{{ partial "css.html" . }} {{ $options := (dict "targetPath" "custom.css"
76
"outputStyle" "compressed" "enableSourceMap" true) }} {{ $style :=
@@ -20,5 +19,5 @@
2019
{{ partial "javascript.html" . }}
2120
</body>
2221

23-
{{ partial "analytics.html" }}
22+
<!-- {{ partial "analytics.html" }} -->
2423
</html>

layouts/partials/css.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- $inServerMode := .Site.IsServer }}
1+
{{- $inServerMode := hugo.IsServer }}
22
{{- $sass := "style.sass" }}
33
{{- $cssTarget := "css/style.css" }}
44
{{- $cssOpts := cond ($inServerMode) (dict "targetPath" $cssTarget "enableSourceMap" true) (dict "targetPath" $cssTarget "outputStyle" "compressed") }}

0 commit comments

Comments
 (0)