website/layouts/index.html

19 lines
503 B
HTML
Raw Normal View History

{{- define "stylesheet" -}}
{{- $scss := resources.Get "/scss/home.scss" -}}
{{- $style := $scss | resources.ToCSS -}}
<link rel="preload stylesheet" as="style" href="{{ $style.Permalink }}" type="text/css" media="screen" />
{{- end -}}
2022-11-28 18:32:29 +01:00
{{- define "header" }}
<header id="introduction" class="global-header">
2022-12-24 14:59:52 +01:00
<h1>{{ i18n "introduction-heading" }}</h1>
<p>{{ i18n "introduction-sub" }}</p>
2022-11-28 18:32:29 +01:00
</header>
{{ end }}
{{- define "main" }}
<main>
2022-12-24 14:59:52 +01:00
{{ .Content }}
</main>
{{- end }}