Wave 2: content fixes, deploy pipeline, layout refinements
- dorveille.md: add ai-model/ai-provider frontmatter, restore mark tags - hugo.toml: goldmark.renderer.unsafe=true (mark/abbr support) - layouts: extract nav partial, fix JSON-LD, simplify list/index - deploy.sh: push-to-render build script (webhook-receiver triggers it) - render-footnotes.html: class-free footnote hook (staged for Hugo upgrade)
This commit is contained in:
parent
d0c6075b0f
commit
7e02901597
8 changed files with 44 additions and 29 deletions
13
layouts/_default/_markup/render-footnotes.html
Normal file
13
layouts/_default/_markup/render-footnotes.html
Normal 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>
|
||||
|
|
@ -1,11 +1,5 @@
|
|||
{{ 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>
|
||||
{{ partial "nav.html" . }}
|
||||
|
||||
<main>
|
||||
<article data-layout="prose">
|
||||
|
|
|
|||
|
|
@ -19,26 +19,20 @@
|
|||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "CreativeWork",
|
||||
"name": {{ .Title | jsonify }},
|
||||
"name": "{{ .Title }}",
|
||||
"author": {
|
||||
"@type": "SoftwareApplication",
|
||||
"name": {{ .Site.Params.author | default .Site.Title | jsonify }},
|
||||
"url": {{ .Site.BaseURL | jsonify }}
|
||||
"name": "{{ .Site.Params.author | default .Site.Title }}",
|
||||
"url": "{{ .Site.BaseURL }}"
|
||||
},
|
||||
"dateModified": {{ .Lastmod.Format "2006-01-02" | jsonify }},
|
||||
"dateModified": "{{ .Lastmod.Format `2006-01-02` }}",
|
||||
"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>
|
||||
{{ partial "nav.html" . }}
|
||||
|
||||
<main>
|
||||
<article data-layout="prose">
|
||||
|
|
@ -50,7 +44,7 @@
|
|||
{{ with .Description }}<p>{{ . }}</p>{{ end }}
|
||||
</hgroup>
|
||||
<p data-text="dim">
|
||||
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 2006" }}</time>
|
||||
<time datetime="{{ .Date.Format `2006-01-02` }}">{{ .Date.Format "January 2006" }}</time>
|
||||
{{ with .Params.author }} · {{ . }}{{ end }}
|
||||
</p>
|
||||
</header>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue