From 289161b91d8e2091c36d74c84994efc40a1daec9 Mon Sep 17 00:00:00 2001 From: Vri Date: Tue, 18 Feb 2025 19:52:40 +0100 Subject: [PATCH] fix: update syntax --- layouts/_default/list.html | 20 ++++++------- layouts/_default/single.html | 54 +++++++++++++++++----------------- layouts/blog/list.html | 30 +++++++++---------- layouts/blog/single.html | 2 +- layouts/errorpages/list.html | 14 ++++----- layouts/errorpages/single.html | 14 ++++----- layouts/index.html | 28 +++++++++--------- layouts/partials/sidebar.html | 4 +-- 8 files changed, 83 insertions(+), 83 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 7d40504..94125af 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,16 +1,16 @@ {{- define "stylesheet" -}} - {{- $style := resources.Get "/scss/default.scss" | resources.ToCSS (dict "outputStyle" "compressed") -}} - +{{- $style := resources.Get "/scss/default.scss" | css.Sass (dict "outputStyle" "compressed") -}} + {{- end -}} {{- define "main" }} -
-

{{ .Title }}

-

{{ .Content }}

- {{- range .Pages }} -

{{ .Title }} {{ .Date | time.Format ":date_long" }}

- {{- end }} -
+
+

{{ .Title }}

+

{{ .Content }}

+ {{- range .Pages }} +

{{ .Title }} {{ .Date | time.Format ":date_long" }}

+ {{- end }} +
-{{- end }} +{{- end }} \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html index e4c8157..5d330ac 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,31 +1,31 @@ {{- define "stylesheet" -}} - {{- $style := resources.Get "/scss/default.scss" | resources.ToCSS (dict "outputStyle" "compressed") -}} - +{{- $style := resources.Get "/scss/default.scss" | css.Sass (dict "outputStyle" "compressed") -}} + {{- end -}} {{- define "main" }} -
- {{- if eq .Params.type "post" }} -

{{ .Date | time.Format "2. January 2006" }}

- {{- end }} -

{{ .Title }}

- {{ .Content -}} - -
-{{- end }} +
+ {{- if eq .Params.type "post" }} +

{{ .Date | time.Format "2. January 2006" }}

+ {{- end }} +

{{ .Title }}

+ {{ .Content -}} + +
+{{- end }} \ No newline at end of file diff --git a/layouts/blog/list.html b/layouts/blog/list.html index d111df3..90c3431 100644 --- a/layouts/blog/list.html +++ b/layouts/blog/list.html @@ -1,6 +1,6 @@ {{- define "stylesheet" -}} - {{- $style := resources.Get "/scss/blog.scss" | resources.ToCSS (dict "outputStyle" "compressed") -}} - +{{- $style := resources.Get "/scss/blog.scss" | css.Sass (dict "outputStyle" "compressed") -}} + {{- end -}} {{- define "header" }} @@ -12,19 +12,19 @@ {{- define "main" }} -
- -{{- end }} +
+ +{{- end }} \ No newline at end of file diff --git a/layouts/blog/single.html b/layouts/blog/single.html index ec43732..2f2f22b 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -1,5 +1,5 @@ {{- define "stylesheet" -}} -{{- $style := resources.Get "/scss/blog.scss" | resources.ToCSS (dict "outputStyle" "compressed") -}} +{{- $style := resources.Get "/scss/blog.scss" | css.Sass (dict "outputStyle" "compressed") -}} {{- end -}} diff --git a/layouts/errorpages/list.html b/layouts/errorpages/list.html index 308c258..126038e 100644 --- a/layouts/errorpages/list.html +++ b/layouts/errorpages/list.html @@ -1,11 +1,11 @@ {{- define "stylesheet" -}} - {{- $style := resources.Get "/scss/default.scss" | resources.ToCSS (dict "outputStyle" "compressed") -}} - +{{- $style := resources.Get "/scss/default.scss" | css.Sass (dict "outputStyle" "compressed") -}} + {{- end -}} {{- define "main" }} -
-

{{ .Params.heading }}

-

{{ .Params.subheading}}

-
-{{- end }} +
+

{{ .Params.heading }}

+

{{ .Params.subheading}}

+
+{{- end }} \ No newline at end of file diff --git a/layouts/errorpages/single.html b/layouts/errorpages/single.html index 308c258..126038e 100644 --- a/layouts/errorpages/single.html +++ b/layouts/errorpages/single.html @@ -1,11 +1,11 @@ {{- define "stylesheet" -}} - {{- $style := resources.Get "/scss/default.scss" | resources.ToCSS (dict "outputStyle" "compressed") -}} - +{{- $style := resources.Get "/scss/default.scss" | css.Sass (dict "outputStyle" "compressed") -}} + {{- end -}} {{- define "main" }} -
-

{{ .Params.heading }}

-

{{ .Params.subheading}}

-
-{{- end }} +
+

{{ .Params.heading }}

+

{{ .Params.subheading}}

+
+{{- end }} \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index 198379d..83137e1 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,6 +1,6 @@ {{- define "stylesheet" -}} - {{- $style := resources.Get "/scss/home.scss" | resources.ToCSS (dict "outputStyle" "compressed") -}} - +{{- $style := resources.Get "/scss/home.scss" | css.Sass (dict "outputStyle" "compressed") -}} + {{- end -}} {{- define "header" }} @@ -12,15 +12,15 @@ {{ end }} {{- define "main" }} -
-
-

- {{ i18n "home-websites-and-graphics" | safeHTML }} -

-

- {{ i18n "home-cozy-town" | safeHTML }} -

-
- {{ partial "moreposts.html" . }} -
-{{- end }} +
+
+

+ {{ i18n "home-websites-and-graphics" | safeHTML }} +

+

+ {{ i18n "home-cozy-town" | safeHTML }} +

+
+ {{ partial "moreposts.html" . }} +
+{{- end }} \ No newline at end of file diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index b2d71cd..b9561f2 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -24,7 +24,7 @@ {{ partial "helpers/icons" "mastodon" }}
- {{- if .Site.IsMultiLingual }} + {{- if hugo.IsMultilingual }} {{ $siteLanguages := .Site.Languages }} {{ $pageLanguage := .Page.Lang }} @@ -41,4 +41,4 @@ {{- end }}
- + \ No newline at end of file