1{{- $targets := .targets -}}
2{{- $book := .book -}}
3{{- with .page -}}
4 <main class="print-source" id="id-{{ md5 .Path }}" data-source="{{ .RelPermalink }}" data-section="{{ .Section }}">
5 {{- partial "page-body.html" (dict "page" . "print" true) -}}
6 {{- range $relation := (index (partialCached "graph.html" site site.Language.Lang).pages .Path).relations -}}
7 {{- if $relation.parent -}}
8 {{- $children := $relation.paths -}}
9 {{- with $children -}}
10 <div class="print-toc">
11 {{- $section := $relation.section -}}
12 <div class="print-toc-heading"><span class="supt">{{ $relation.verb }} {{ partial "GetPluralSectionName.html" $section }}⁄</span></div>
13 <div class="print-toc-list">
14 {{- range . -}}{{- with site.GetPage . -}}
15 {{- $authors := slice -}}
16 {{- range (index (partialCached "graph.html" site site.Language.Lang).pages .Path).nouns.author -}}
17 {{- with site.GetPage . -}}{{- $authors = $authors | append .Title -}}{{- end -}}
18 {{- end -}}
19 {{- $text := .Title -}}
20 {{- with $authors -}}{{- $text = printf "%s (%s)" $text (delimit . ", ") -}}{{- end -}}
21 <div class="print-toc-entry">{{ partial "page-link.html" (dict "page" . "class" "toc" "text" (printf "<span><span class=\"back\">%s</span></span>" (htmlEscape $text))) }}</div>
22 {{- end -}}{{- end -}}
23 </div>
24 </div>
25 {{- end -}}
26 {{- end -}}
27 {{- end -}}
28 <aside class="print-menus">
29 {{- partial "menu_isin.html" (dict "currentPage" . "print" true "from" $book) -}}
30 {{- range $relation := (index (partialCached "graph.html" site site.Language.Lang).pages .Path).relations -}}
31 {{- if and (eq $relation.verb "no-prefix") (not (in (slice "author" "editor") $relation.section)) -}}
32 {{- partial "graph-menu.html" (dict "cursiveMenuPrefix" "" "menuSection" $relation.section "pagePaths" $relation.paths "class" " noun") -}}
33 {{- end -}}
34 {{- end -}}
35 {{- partial "deferred_page_graph.html" (dict "currentPage" . "targets" $targets "from" $book) -}}
36 </aside>
37 <article class="article">{{ partial "print-rewrite.html" (dict "html" (partial "content-html.html" .Content) "page" . "namespace" true "targets" $targets) }}</article>
38 </main>
39{{- end -}}