nicely render project links on section page

This commit is contained in:
Jef Roosens 2024-06-06 10:24:56 +02:00
parent 323b9e2e3c
commit 4374c7f280
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
8 changed files with 56 additions and 1 deletions

View file

@ -2,9 +2,11 @@
<article>
<header id="post-header">
<h1>{{ .Title }}</h1>
{{- if compare.Ne .Parent.Title "Home" -}}
<div>
Part of the <a href="{{ .Parent.Permalink }}">{{ .Parent.Title }}</a> series
</br>
{{- end -}}
{{- if isset .Params "date" -}}
{{ if eq .Lastmod .Date }}
<time>{{ .Date | time.Format (i18n "post.created") }}</time>

View file

@ -1,5 +1,6 @@
{{ define "main" }}
<h2>{{ .Title }}</h2>
<header id="links">
<nav>
<ul>
{{ range .Page.Params.links -}}
@ -9,6 +10,7 @@
{{- end }}
</ul>
</nav>
</header>
{{ .Content }}