Show topics on the home page, name the current one in the header
All checks were successful
Build and deploy static pages / build-and-push (push) Successful in 13s

The home page fell back to PaperMod's recursive page list, which dumped
digest pages instead of the research topics they belong to. Add a home
layout that renders one card per entry in data/topics.yaml, with venue
counts, the nearest upcoming deadline, and section shortcuts.

With the topics listed there, drop the topic menu from the header and
show the current topic beside the site title instead, so the selected
research area is visible from every page. The breadcrumbs then repeated
that prefix, so override the partial to start below the topic section.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-17 20:11:50 +02:00
parent 7e26bc0613
commit 69b2c06b28
4 changed files with 135 additions and 10 deletions

View File

@@ -30,6 +30,15 @@
{{- end -}}
{{- $label_text -}}
</a>
{{- /* Inside a topic, name it next to the site title so the current
research area is visible from every page. */ -}}
{{- $section := .Section }}
{{- range hugo.Data.topics.topics }}
{{- if eq .slug $section }}
<span class="logo-sep">/</span>
<a class="logo-topic" href="{{ printf "%s/" .slug | relURL }}" title="{{ .title }}">{{ .title }}</a>
{{- end }}
{{- end }}
{{- end }}
{{- $lsenabled := (or (not site.Params.disableThemeToggle) (and (not site.Params.disableLangToggle) (hugo.IsMultilingual))) }}
@@ -100,16 +109,6 @@
</li>
{{- end }}
</ul>
{{- else }}
<ul id="menu" class="menu">
{{- range hugo.Data.topics.topics }}
<li>
<a href="{{ printf "%s/" .slug | relURL }}" title="{{ .title }}">
<span>{{ .title }}</span>
</a>
</li>
{{- end }}
</ul>
{{- end }}
</nav>
</header>