asw-v01: archive deferred content (packs, site, lab, legacy examples)

- 2.1: packs/ -> archive/packs/
- 2.2: site/ -> archive/site/
- 2.3: src/lab/ -> archive/lab/
- 2.4: examples/ -> archive/examples-legacy/ (SSI-based)
This commit is contained in:
exe.dev user 2026-06-07 10:39:21 +02:00
parent 416fe2f180
commit e47a9f4401
173 changed files with 11 additions and 5 deletions

View file

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="{{ .Site.Language.LanguageCode | default "en" }}" data-theme="dark">
<head>
{{- partial "head.html" . -}}
</head>
<body>
<nav>
<ul><li><a href="{{ .Site.BaseURL }}"><strong>{{ .Site.Title }}</strong></a></li></ul>
<ul data-nav-links>
{{- range .Site.Menus.main }}
<li><a href="{{ .URL }}"{{ if $.IsMenuCurrent "main" . }} aria-current="page"{{ end }}>{{ .Name }}</a></li>
{{- end }}
</ul>
<button data-theme-toggle aria-label="Toggle theme"></button>
</nav>
<main>
{{- block "main" . }}{{- end }}
</main>
<footer>
<small>
<a href="{{ "/" | relURL }}">{{ .Site.Title }}</a>
· {{ now.Year }}
{{- with .Site.Params.description }} · {{ . }}{{- end }}
</small>
</footer>
</body>
</html>

View file

@ -0,0 +1,39 @@
{{ define "main" }}
<section>
<header>
<h1>{{ .Title }}</h1>
{{- with .Description }}<p>{{ . }}</p>{{- end }}
</header>
{{- if .IsHome }}
{{- partial "tag-nav.html" . }}
{{- end }}
<section data-layout="grid">
{{- range .Pages }}
<article>
<header>
<h3>
<a href="{{ .RelPermalink }}" data-wikilink>{{ .Title }}</a>
</h3>
{{- if not .Date.IsZero }}
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "Jan 2, 2006" }}</time>
{{- end }}
</header>
{{- with .Summary }}
<p>{{ . }}</p>
{{- end }}
{{- with .GetTerms "tags" }}
<footer>
{{- range . }}
<a href="{{ .Permalink }}" data-tag="{{ .Name }}">{{ .Name }}</a>
{{- end }}
</footer>
{{- end }}
</article>
{{- end }}
</section>
</section>
{{ end }}

View file

@ -0,0 +1,36 @@
{{ define "main" }}
<article>
<header>
<h1>{{ .Title }}</h1>
{{- if not .Date.IsZero }}
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 2, 2006" }}</time>
{{- end }}
{{- with .Description }}
<p>{{ . }}</p>
{{- end }}
{{- with .GetTerms "tags" }}
<nav data-role="tag-cloud" aria-label="Tags">
{{- range . }}
<a href="{{ .Permalink }}" data-tag="{{ .Name }}">{{ .Name }}</a>
{{- end }}
</nav>
{{- end }}
</header>
{{ .Content }}
{{- if .PrevInSection }}
<footer>
{{- with .PrevInSection }}
<a href="{{ .RelPermalink }}" rel="prev" data-wikilink>← {{ .Title }}</a>
{{- end }}
{{- with .NextInSection }}
<a href="{{ .RelPermalink }}" rel="next" data-wikilink>{{ .Title }} →</a>
{{- end }}
</footer>
{{- end }}
</article>
{{ end }}