Switch to Hugo-based build

This commit is contained in:
Antoine Martin 2022-11-18 23:26:44 +01:00
parent 21feddaf52
commit 10b809eebd
18 changed files with 257 additions and 0 deletions

View file

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<div id="content">
{{- block "main" . }}{{- end }}
</div>
{{- partial "footer.html" . -}}
</body>
</html>

View file

View file

@ -0,0 +1,19 @@
{{ define "main" }}
<main aria-role="main">
<header class="homepage-header">
<h1>{{.Title}}</h1>
{{ with .Params.subtitle }}
<span class="subtitle">{{.}}</span>
{{ end }}
</header>
<div class="homepage-content">
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
{{.Content}}
</div>
<div>
{{ range first 10 .Site.RegularPages }}
{{ .Render "summary"}}
{{ end }}
</div>
</main>
{{ end }}

View file

@ -0,0 +1,7 @@
<head>
<meta charset="utf-8">
{{ $sassOptions := (dict "targetPath" "style.css" "enableSourceMap" (not hugo.IsProduction)) }}
{{ $style := resources.Get "sass/main.scss" | resources.ToCSS $sassOptions }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" type="text/css">
</head>