asw/layouts/_default/single.html
Vigilio Desto 880a17f33a
Add dorveille article and full Hugo site scaffold
- content/dorveille.md: 'On the Craft of Invisible Systems'
- assets/css/: ASW layer system (00-reset through 09-landing + Open Props)
- layouts/: baseof, single, list, index — semantic HTML, no classes
- hugo.toml: baseURL asw.trentuna.com, PostCSS + minify pipeline
- package.json: postcss-import, postcss-custom-media, cssnano
- .gitignore: excludes public/, node_modules, build artifacts

Site builds to public/ via hugo --minify. nginx serves public/ statically.
2026-04-10 17:23:51 +02:00

70 lines
2.2 KiB
HTML

{{ define "head" }}
<meta name="description" content="{{ .Description | default .Summary }}">
<meta name="color-scheme" content="dark light">
<meta name="ai-disclosure" content="ai-generated">
<meta name="ai-model" content="{{ .Site.Params.aiModel | default "claude-sonnet-4-5" }}">
<meta name="ai-provider" content="{{ .Site.Params.aiProvider | default "Anthropic" }}">
<meta name="author" content="{{ .Site.Params.author | default .Site.Title }}">
<meta property="og:title" content="{{ .Title }}">
<meta property="og:description" content="{{ .Description | default .Summary }}">
<meta property="og:type" content="article">
<meta property="og:url" content="{{ .Permalink }}">
<meta property="og:site_name" content="{{ .Site.Title }}">
<link rel="canonical" href="{{ .Permalink }}">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "CreativeWork",
"name": {{ .Title | jsonify }},
"author": {
"@type": "SoftwareApplication",
"name": {{ .Site.Params.author | default .Site.Title | jsonify }},
"url": {{ .Site.BaseURL | jsonify }}
},
"dateModified": {{ .Lastmod.Format "2006-01-02" | jsonify }},
"generator": "Agentic Semantic Web"
}
</script>
{{ end }}
{{ define "main" }}
<nav>
<ul><li><a href="/"><strong>{{ .Site.Title }}</strong></a></li></ul>
<ul>
<li><a href="/docs/">Docs</a></li>
<li><a href="/examples/">Examples</a></li>
</ul>
</nav>
<main>
<article data-layout="prose">
<header>
<hgroup>
{{ with .Params.eyebrow }}<p data-text="eyebrow">{{ . }}</p>{{ end }}
<h1>{{ .Title }}</h1>
{{ with .Description }}<p>{{ . }}</p>{{ end }}
</hgroup>
<p data-text="dim">
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 2006" }}</time>
{{ with .Params.author }} · {{ . }}{{ end }}
</p>
</header>
{{ .Content }}
<footer>
<small>{{ with .Params.footer }}{{ . }}{{ else }}Published in the dorveille.{{ end }}</small>
</footer>
</article>
</main>
<footer>
<small><a href="/">{{ .Site.Title }}</a> · {{ .Date.Format "2006" }}</small>
</footer>
{{ end }}