SandpointsTheme/layouts/print/single.html
2025-05-04 15:11:06 +02:00

31 lines
1.4 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{{- define "print" -}}
{{- $currentPage := . -}}
{{- range $source := $currentPage.Params.print[0].render.static -}}
{{- with site.GetPage (printf "%s" $source) -}}
{{- $sourcePage := . -}}
{{- partial "single-page-graph.html" . -}}
{{- partial "page-header.html" . -}}
<main class="content">
<div class="title"><span class="supt">{{ $sourcePage.Section }}</span>{{ $sourcePage.Title }}</div>
<div class="page-menu">
<aside class="toc">
{{ if ne (trim $sourcePage.TableOfContents "\n") "<nav id=\"TableOfContents\"></nav>" }}
{{ $sourcePage.TableOfContents }}
{{ end }}
</aside>
<aside class="graph-menus">
{{- partial "menu_verbs.html" . -}}
{{- partial "deferred_page_graph.html" . -}}
</aside>
</div>
<div class="article">{{ $sourcePage.Content }}</div>
</main>
{{- range $param := $currentPage.Params.print.iterate -}}
{{- printf "Iterate params: %#v" . -}}
{{- with index $sourcePage.Params $param -}}
{{- printf "Iteration: %#v" . -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}