Hugo site: layouts, config and pilot content
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YDRjtmAiNpo5mK5N3d7QwZ
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
<p><a href="{{ (site.GetPage "/topics").RelPermalink }}">Browse by topic</a></p>
|
||||
<ol class="timeline">
|
||||
{{ range .RegularPages.ByDate }}
|
||||
<li>
|
||||
<time>{{ .Params.when | default (.Date.Format "2006") }}</time>
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
<small>{{ partial "terms.html" (dict "page" . "taxonomy" "topics") }}</small>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ol>
|
||||
{{ end }}
|
||||
@@ -0,0 +1,12 @@
|
||||
{{ define "main" }}
|
||||
<article>
|
||||
<p class="crumbs"><a href="{{ .Parent.RelPermalink }}">History</a>{{ with .GetTerms "topics" }} › {{ partial "terms.html" (dict "page" $ "taxonomy" "topics") }}{{ end }}</p>
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ with .Params.when }}<p class="meta">{{ . }}</p>{{ end }}
|
||||
<div class="content">{{ .Content }}</div>
|
||||
<nav class="prev-next">
|
||||
{{ with .PrevInSection }}<a href="{{ .RelPermalink }}">← {{ .Title }}</a>{{ end }}
|
||||
{{ with .NextInSection }}<a href="{{ .RelPermalink }}">{{ .Title }} →</a>{{ end }}
|
||||
</nav>
|
||||
</article>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user