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,6 +1,6 @@
{{- define "stylesheet" -}}
{{- $style := resources.Get "/scss/blog.scss" | resources.ToCSS (dict "outputStyle" "compressed") -}}
<link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" />
{{- $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" />
{{- end -}}
{{- define "header" }}
@ -12,19 +12,19 @@
{{- define "main" }}
<main>
<div id="posts-wrapper">
<main>
<div id="posts-wrapper">
{{ range (where .Site.RegularPages "Section" "blog") }}
<a href="{{ .Permalink }}" class="post-wrapper">
<p class="title">{{ .Title }}</p>
<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="author">{{ with .Params.author }}by {{ end }}{{ .Params.author }}</span>
</aside>
</a>
<a href="{{ .Permalink }}" class="post-wrapper">
<p class="title">{{ .Title }}</p>
<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="author">{{ with .Params.author }}by {{ end }}{{ .Params.author }}</span>
</aside>
</a>
{{ end }}
</div>
</main>
</div>
{{- end }}
</main>
{{- end }}