Switch to Hugo-based build
This commit is contained in:
parent
21feddaf52
commit
10b809eebd
18 changed files with 257 additions and 0 deletions
0
themes/custom/layouts/404.html
Normal file
0
themes/custom/layouts/404.html
Normal file
11
themes/custom/layouts/_default/baseof.html
Normal file
11
themes/custom/layouts/_default/baseof.html
Normal 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>
|
||||
0
themes/custom/layouts/_default/list.html
Normal file
0
themes/custom/layouts/_default/list.html
Normal file
0
themes/custom/layouts/_default/single.html
Normal file
0
themes/custom/layouts/_default/single.html
Normal file
19
themes/custom/layouts/index.html
Normal file
19
themes/custom/layouts/index.html
Normal 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 }}
|
||||
0
themes/custom/layouts/partials/footer.html
Normal file
0
themes/custom/layouts/partials/footer.html
Normal file
7
themes/custom/layouts/partials/head.html
Normal file
7
themes/custom/layouts/partials/head.html
Normal 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>
|
||||
0
themes/custom/layouts/partials/header.html
Normal file
0
themes/custom/layouts/partials/header.html
Normal file
Loading…
Add table
Add a link
Reference in a new issue