refactor: restructure repo into src/ site/ dist/ vendor/ packs/

Separate framework source from website:
- src/layers/ + src/main.css: CSS framework source (was assets/css/)
- site/: Hugo website (content/, layouts/, hugo.toml)
- dist/: built output (asw.css, asw.min.css)
- vendor/open-props/: vendored dependency with version tracking
- Hugo module mounts: dist/ → static, site runs from site/

Build: hugo --source site/ passes (105 pages).
npm run build produces dist/asw.css.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ludo 2026-04-11 15:12:42 +02:00
parent 5bf233348d
commit 910b0e42a6
Signed by: ludo
GPG key ID: F6E479DEFAB84D6E
71 changed files with 76 additions and 3 deletions

View file

@ -0,0 +1,13 @@
{{- /* render-footnotes.html
Replace Hugo's default <div class="footnotes"> with ASW-semantic markup.
Hugo v0.123.0+ render hook for the footnote block.
Ref: https://gohugo.io/render-hooks/footnotes/
*/ -}}
<footer data-role="footnotes">
<hr>
<ol>
{{- range .Items }}
<li id="{{ .ID }}">{{ .Content }}{{ .Return }}</li>
{{- end }}
</ol>
</footer>

View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode | default "en" }}">
<head>
{{- partial "head.html" . -}}
</head>
<body>
{{ partial "nav.html" . }}
{{ block "header" . }}{{ end }}
{{ block "content" . }}{{ end }}
<footer>
<small><a href="/">{{ .Site.Title }}</a> · {{ now.Format "2006" }}</small>
</footer>
</body>
</html>

View file

@ -0,0 +1,24 @@
{{ define "header" }}
<header>
<h1>{{ .Title }}</h1>
{{ with .Description }}<p>{{ . }}</p>{{ end }}
</header>
{{ end }}
{{ define "content" }}
<article role="main">
<section>
{{ range .Pages }}
<article>
<header>
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<p data-text="dim">
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 2006" }}</time>
</p>
</header>
{{ with .Summary }}<p>{{ . }}</p>{{ end }}
</article>
{{ end }}
</section>
</article>
{{ end }}

View file

@ -0,0 +1,23 @@
{{ define "header" }}
<header>
{{ with .Type }}<p data-text="eyebrow">{{ . }}</p>{{ end }}
<p data-text="dim">
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 2006" }}</time>
{{ with .Params.author }} · {{ . }}{{ end }}
</p>
{{ with .Params.tags }}
<p>{{ range . }}<a href="/tags/{{ . }}" data-text="tag">#{{ . }}</a> {{ end }}</p>
{{ end }}
</header>
{{ end }}
{{ define "content" }}
<article role="main">
{{ .Content }}
{{ with .Params.footer }}
<footer>
<small>{{ . }}</small>
</footer>
{{ end }}
</article>
{{ end }}