mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org.git
synced 2024-09-19 01:47:52 +00:00
14 lines
538 B
HTML
14 lines
538 B
HTML
{{ $tpl := printf "print/content-%s.html" .Page.Type }}
|
|
|
|
{{ if templates.Exists (printf "partials/%s" $tpl) }}
|
|
{{ partial $tpl . }}
|
|
{{ else -}}
|
|
{{ $break := cond .DoPageBreak "page-break-before: always" "" -}}
|
|
<div class="td-content" style="{{ $break }}">
|
|
{{ $break := cond .DoPageBreak "page-break-before: always" "" }}
|
|
<h1 id="pg-{{ .Page.File.UniqueID }}">{{ .PageNum }} - {{ .Page.Title }}</h1>
|
|
{{ with .Page.Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
|
|
{{ .Page.Content }}
|
|
</div>
|
|
{{ end }}
|