{{- define "main" }} {{- if .Title }} {{- end }} {{- if .Content }}
{{ .Content }}
{{- end }} {{- /* The home page lists the research topics registered in data/topics.yaml, not the site's pages: every content page lives under a topic, so the default recursive list would dump raw digests here. */ -}} {{- $now := now.Format "2006-01-02" }} {{- range hugo.Data.topics.topics }} {{- $slug := .slug }} {{- $data := index site.Data $slug }} {{- $confs := len ((and $data $data.venues) | default dict).conferences }} {{- $journals := len ((and $data $data.venues) | default dict).journals }} {{- /* Nearest still-upcoming deadline, taken from the calendar page's events (already normalised to ISO dates by pa-generate). */ -}} {{- $next := "" }} {{- $nextTitle := "" }} {{- with site.GetPage (printf "/%s/calendar" $slug) }} {{- range .Params.events }} {{- $start := printf "%v" .start }} {{- if and (ge $start $now) (or (eq $next "") (lt $start $next)) }} {{- $next = $start }} {{- $nextTitle = .title }} {{- end }} {{- end }} {{- end }}

{{ .title }}

{{- with .description }}

{{ . }}

{{- end }}
{{- end }} {{- end }}{{- /* end main */ -}}