feat: add page content type for site infrastructure
Distinct from articles/essays/notes — pages have no publish lifecycle, no date, no TOC, no prev/next. <main> landmark, not <article>. Groundwork: layouts/page/single.html + content/pages/about.md stub.
This commit is contained in:
parent
15a6db9c0e
commit
ecfbed0374
2 changed files with 16 additions and 0 deletions
5
content/pages/about.md
Normal file
5
content/pages/about.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
title: "About"
|
||||||
|
description: "What ASW is and who builds it."
|
||||||
|
type: page
|
||||||
|
---
|
||||||
11
layouts/page/single.html
Normal file
11
layouts/page/single.html
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
{{ define "header" }}{{ end }}
|
||||||
|
|
||||||
|
{{ define "content" }}
|
||||||
|
<main>
|
||||||
|
<header>
|
||||||
|
<h1>{{ .Title }}</h1>
|
||||||
|
{{- with .Description }}<p>{{ . }}</p>{{ end }}
|
||||||
|
</header>
|
||||||
|
{{ .Content }}
|
||||||
|
</main>
|
||||||
|
{{ end }}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue