site/themes/rb/layouts/project/section.html

27 lines
442 B
HTML
Raw Normal View History

2024-06-05 20:43:19 +02:00
{{ define "main" }}
<h2>{{ .Title }}</h2>
<header id="links">
2024-06-05 20:43:19 +02:00
<nav>
<ul>
{{ range .Page.Params.links -}}
<li>
<a href="{{ .url }}" title="{{ .name }}">{{- .name -}}</a>
</li>
{{- end }}
</ul>
</nav>
</header>
2024-06-05 20:43:19 +02:00
{{ .Content }}
2024-06-05 21:43:47 +02:00
{{ if compare.Gt .Pages.Len 0 }}
<h3>{{ i18n "posts.title" }}</h3>
<ul id="posts">
{{- range .Pages }}
{{ .Render "li" }}
{{- end }}
</ul>
{{ end }}
2024-06-05 20:43:19 +02:00
{{ end }}