27 lines
442 B
HTML
27 lines
442 B
HTML
{{ define "main" }}
|
|
<h2>{{ .Title }}</h2>
|
|
<header id="links">
|
|
<nav>
|
|
<ul>
|
|
{{ range .Page.Params.links -}}
|
|
<li>
|
|
<a href="{{ .url }}" title="{{ .name }}">{{- .name -}}</a>
|
|
</li>
|
|
{{- end }}
|
|
</ul>
|
|
</nav>
|
|
</header>
|
|
|
|
{{ .Content }}
|
|
|
|
{{ if compare.Gt .Pages.Len 0 }}
|
|
<h3>{{ i18n "posts.title" }}</h3>
|
|
<ul id="posts">
|
|
{{- range .Pages }}
|
|
{{ .Render "li" }}
|
|
{{- end }}
|
|
</ul>
|
|
{{ end }}
|
|
|
|
{{ end }}
|