github.com/e154/smart-home@v0.17.2-0.20240311175135-e530a6e5cd45/doc/themes/docsy/layouts/partials/print/content.html (about) 1 {{ $tpl := printf "print/content-%s.html" .Page.Type }} 2 3 {{ if templates.Exists (printf "partials/%s" $tpl) }} 4 {{ partial $tpl . }} 5 {{ else -}} 6 {{ $break := cond .DoPageBreak "page-break-before: always" "" -}} 7 <div class="td-content" style="{{ $break }}"> 8 {{ $break := cond .DoPageBreak "page-break-before: always" "" }} 9 <h1 id="pg-{{ .Page.File.UniqueID }}">{{ .PageNum }} - {{ .Page.Title }}</h1> 10 {{ with .Page.Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }} 11 {{ .Page.Content }} 12 </div> 13 {{ end }}