19 lines
620 B
HTML
19 lines
620 B
HTML
|
{{ define "main" }}
|
||
|
<main class="main">
|
||
|
{{ partial "breadcrumb.html" . }}
|
||
|
{{- if or .Title .Content }}
|
||
|
<div class="page block">
|
||
|
{{ with .Title }}<h1 class="page__title">{{ . }}</h1>{{ end }}
|
||
|
{{ with .Content }}<div class="page__content{{ if not $.Title }} page__content--notitle{{ end }}">{{ . }}</div>{{ end }}
|
||
|
</div>
|
||
|
{{- end }}
|
||
|
<div class="page block">
|
||
|
{{ range .Pages }}
|
||
|
<li class="breadcrumb">
|
||
|
<a href="{{ .Permalink }}">{{ .Name }}</a> <small>(<a href="{{ .Permalink }}atom.xml">ATOM</a>, <a href="{{ .Permalink }}rss.xml">RSS</a>)</small>
|
||
|
</li>
|
||
|
{{ end }}
|
||
|
</div>
|
||
|
</main>
|
||
|
{{ end }}
|