website/layouts/index.html

18 lines
571 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">
{{ .Content }}
</main>
{{- end }}