fix: update syntax
Some checks failed
ci/woodpecker/push/hugo-build Pipeline failed

This commit is contained in:
Vri 🌈 2025-02-18 19:52:40 +01:00
parent c04e4ae6c5
commit 289161b91d
Signed by: vrifox
SSH key fingerprint: SHA256:7OLOvW+jmULkXpdl5rUWgid7WJQhOIEgj+4WP/PtCpI
8 changed files with 83 additions and 83 deletions

View file

@ -1,16 +1,16 @@
{{- define "stylesheet" -}} {{- define "stylesheet" -}}
{{- $style := resources.Get "/scss/default.scss" | resources.ToCSS (dict "outputStyle" "compressed") -}} {{- $style := resources.Get "/scss/default.scss" | css.Sass (dict "outputStyle" "compressed") -}}
<link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" /> <link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" />
{{- end -}} {{- end -}}
{{- define "main" }} {{- define "main" }}
<main> <main>
<h1 class="title">{{ .Title }}</h1> <h1 class="title">{{ .Title }}</h1>
<p>{{ .Content }}</p> <p>{{ .Content }}</p>
{{- range .Pages }} {{- range .Pages }}
<p> <a href="{{ .Permalink }}">{{ .Title }}</a> <span>{{ .Date | time.Format ":date_long" }}</span> </p> <p> <a href="{{ .Permalink }}">{{ .Title }}</a> <span>{{ .Date | time.Format ":date_long" }}</span> </p>
{{- end }} {{- end }}
</main> </main>
{{- end }} {{- end }}

View file

@ -1,31 +1,31 @@
{{- define "stylesheet" -}} {{- define "stylesheet" -}}
{{- $style := resources.Get "/scss/default.scss" | resources.ToCSS (dict "outputStyle" "compressed") -}} {{- $style := resources.Get "/scss/default.scss" | css.Sass (dict "outputStyle" "compressed") -}}
<link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" /> <link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" />
{{- end -}} {{- end -}}
{{- define "main" }} {{- define "main" }}
<main> <main>
{{- if eq .Params.type "post" }} {{- if eq .Params.type "post" }}
<p class="date-published" title="{{ .Date | time.Format "2. January 2006, 15:04 MST" }}">{{ .Date | time.Format "2. January 2006" }}</p> <p class="date-published" title="{{ .Date | time.Format "2. January 2006, 15:04 MST" }}">{{ .Date | time.Format "2. January 2006" }}</p>
{{- end }} {{- end }}
<h1 class="title">{{ .Title }}</h1> <h1 class="title">{{ .Title }}</h1>
{{ .Content -}} {{ .Content -}}
<aside> <aside>
{{- with .Params.topics }} {{- with .Params.topics }}
<ul class="topics"> <ul class="topics">
{{- range . }} {{- range . }}
<li> <li>
<a href="{{ "topics" | relURL}}/{{ . | urlize }}">{{ . }}</a> <a href="{{ "topics" | relURL}}/{{ . | urlize }}">{{ . }}</a>
</li> </li>
{{ end }} {{ end }}
</ul> </ul>
{{- end }} {{- end }}
{{- with .Params.tags }} {{- with .Params.tags }}
tags tags
{{- range . }} {{- range . }}
<a href="{{ "tags" | relURL }}/{{ . | urlize }}">{{ . }}</a> <a href="{{ "tags" | relURL }}/{{ . | urlize }}">{{ . }}</a>
{{- end }} {{- end }}
{{- end }} {{- end }}
</aside> </aside>
</main> </main>
{{- end }} {{- end }}

View file

@ -1,6 +1,6 @@
{{- define "stylesheet" -}} {{- define "stylesheet" -}}
{{- $style := resources.Get "/scss/blog.scss" | resources.ToCSS (dict "outputStyle" "compressed") -}} {{- $style := resources.Get "/scss/blog.scss" | css.Sass (dict "outputStyle" "compressed") -}}
<link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" /> <link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" />
{{- end -}} {{- end -}}
{{- define "header" }} {{- define "header" }}
@ -12,19 +12,19 @@
{{- define "main" }} {{- define "main" }}
<main> <main>
<div id="posts-wrapper"> <div id="posts-wrapper">
{{ range (where .Site.RegularPages "Section" "blog") }} {{ range (where .Site.RegularPages "Section" "blog") }}
<a href="{{ .Permalink }}" class="post-wrapper"> <a href="{{ .Permalink }}" class="post-wrapper">
<p class="title">{{ .Title }}</p> <p class="title">{{ .Title }}</p>
<aside class="meta" title="{{ .Date | time.Format "2 Jan 2006, 15:04 MST" }}"> <aside class="meta" title="{{ .Date | time.Format " 2 Jan 2006, 15:04 MST" }}">
<span class="date">{{ .Date | time.Format "2. January 2006" }}</span> <span class="date">{{ .Date | time.Format "2. January 2006" }}</span>
<span class="author">{{ with .Params.author }}by {{ end }}{{ .Params.author }}</span> <span class="author">{{ with .Params.author }}by {{ end }}{{ .Params.author }}</span>
</aside> </aside>
</a> </a>
{{ end }} {{ end }}
</div> </div>
</main>
{{- end }} </main>
{{- end }}

View file

@ -1,5 +1,5 @@
{{- define "stylesheet" -}} {{- define "stylesheet" -}}
{{- $style := resources.Get "/scss/blog.scss" | resources.ToCSS (dict "outputStyle" "compressed") -}} {{- $style := resources.Get "/scss/blog.scss" | css.Sass (dict "outputStyle" "compressed") -}}
<link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" /> <link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" />
{{- end -}} {{- end -}}

View file

@ -1,11 +1,11 @@
{{- define "stylesheet" -}} {{- define "stylesheet" -}}
{{- $style := resources.Get "/scss/default.scss" | resources.ToCSS (dict "outputStyle" "compressed") -}} {{- $style := resources.Get "/scss/default.scss" | css.Sass (dict "outputStyle" "compressed") -}}
<link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" /> <link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" />
{{- end -}} {{- end -}}
{{- define "main" }} {{- define "main" }}
<main> <main>
<h2>{{ .Params.heading }}</h2> <h2>{{ .Params.heading }}</h2>
<p>{{ .Params.subheading}}</p> <p>{{ .Params.subheading}}</p>
</main> </main>
{{- end }} {{- end }}

View file

@ -1,11 +1,11 @@
{{- define "stylesheet" -}} {{- define "stylesheet" -}}
{{- $style := resources.Get "/scss/default.scss" | resources.ToCSS (dict "outputStyle" "compressed") -}} {{- $style := resources.Get "/scss/default.scss" | css.Sass (dict "outputStyle" "compressed") -}}
<link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" /> <link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" />
{{- end -}} {{- end -}}
{{- define "main" }} {{- define "main" }}
<main> <main>
<h2>{{ .Params.heading }}</h2> <h2>{{ .Params.heading }}</h2>
<p>{{ .Params.subheading}}</p> <p>{{ .Params.subheading}}</p>
</main> </main>
{{- end }} {{- end }}

View file

@ -1,6 +1,6 @@
{{- define "stylesheet" -}} {{- define "stylesheet" -}}
{{- $style := resources.Get "/scss/home.scss" | resources.ToCSS (dict "outputStyle" "compressed") -}} {{- $style := resources.Get "/scss/home.scss" | css.Sass (dict "outputStyle" "compressed") -}}
<link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" /> <link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" />
{{- end -}} {{- end -}}
{{- define "header" }} {{- define "header" }}
@ -12,15 +12,15 @@
{{ end }} {{ end }}
{{- define "main" }} {{- define "main" }}
<main id="main"> <main id="main">
<div id="general-description"> <div id="general-description">
<p id="websites-and-graphics"> <p id="websites-and-graphics">
{{ i18n "home-websites-and-graphics" | safeHTML }} {{ i18n "home-websites-and-graphics" | safeHTML }}
</p> </p>
<p id="cozy-town"> <p id="cozy-town">
{{ i18n "home-cozy-town" | safeHTML }} {{ i18n "home-cozy-town" | safeHTML }}
</p> </p>
</div> </div>
{{ partial "moreposts.html" . }} {{ partial "moreposts.html" . }}
</main> </main>
{{- end }} {{- end }}

View file

@ -24,7 +24,7 @@
<a class="hint-text" rel="me" href="https://social.anoxinon.de/@vri" aria-label="Mastodon">{{ partial "helpers/icons" "mastodon" }}</a> <a class="hint-text" rel="me" href="https://social.anoxinon.de/@vri" aria-label="Mastodon">{{ partial "helpers/icons" "mastodon" }}</a>
</nav> </nav>
<div id="languages"> <div id="languages">
{{- if .Site.IsMultiLingual }} {{- if hugo.IsMultilingual }}
{{ $siteLanguages := .Site.Languages }} {{ $siteLanguages := .Site.Languages }}
{{ $pageLanguage := .Page.Lang }} {{ $pageLanguage := .Page.Lang }}
@ -41,4 +41,4 @@
{{- end }} {{- end }}
</div> </div>
</div> </div>
</header> </header>