selfprivacy.org/_vendor/github.com/google/docsy/layouts/partials/print/content.html
2024-04-22 02:04:16 +03:00

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 }}