- docs/frontmatter.md: canonical frontmatter reference for all content types - dorveille.md: add tags, ai-disclosure fields - single.html: AI meta tags now read from frontmatter instead of hardcoded
64 lines
2.2 KiB
HTML
64 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="{{ index .Params "ai-disclosure" | default "ai-assisted" }}">
|
|
<meta name="ai-model" content="{{ index .Params "ai-model" | default .Site.Params.aiModel | default "claude-sonnet-4-5" }}">
|
|
<meta name="ai-provider" content="{{ index .Params "ai-provider" | default .Site.Params.aiProvider | default "Anthropic" }}">
|
|
<meta name="author" content="{{ .Params.author | default .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 }}",
|
|
"author": {
|
|
"@type": "SoftwareApplication",
|
|
"name": "{{ .Site.Params.author | default .Site.Title }}",
|
|
"url": "{{ .Site.BaseURL }}"
|
|
},
|
|
"dateModified": "{{ .Lastmod.Format `2006-01-02` }}",
|
|
"generator": "Agentic Semantic Web"
|
|
}
|
|
</script>
|
|
{{ end }}
|
|
|
|
{{ define "main" }}
|
|
{{ partial "nav.html" . }}
|
|
|
|
<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 }}
|