website/layouts/index.html
vrifox 1424e36ba8
All checks were successful
ci/woodpecker/push/hugo-build Pipeline was successful
improve syntax
2023-05-18 13:20:29 +02:00

26 lines
873 B
HTML

{{- define "stylesheet" -}}
{{- $style := resources.Get "/scss/home.scss" | resources.ToCSS (dict "outputStyle" "compressed") -}}
<link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" />
{{- end -}}
{{- define "header" }}
<header id="introduction" class="global-header">
<h1>{{ i18n "introduction-heading" }}</h1>
<p>{{ i18n "introduction-sub" }}</p>
<a href="#main" id="scroll-down"></a>
</header>
{{ end }}
{{- define "main" }}
<main id="main">
<div id="general-description">
<p id="websites-and-graphics">
{{ i18n "home-websites-and-graphics" | safeHTML }}
</p>
<p id="cozy-town">
{{ i18n "home-cozy-town" | safeHTML }}
</p>
</div>
{{ partial "moreposts.html" . }}
</main>
{{- end }}