- {{ $addS := 0 }}
- {{ with .Params.editors }}
- {{ $addS = len . }}
- {{ end }}
- {{ range $n, $authorFile := .Params.editors }}
- {{ $author := $.GetPage (printf "/editor/%s" $authorFile) }}
- {{ if eq $n 0 }}
-
{{ end }}
+ {{ range $n, $authorFile := .Params.editors }}
+ {{ $author := $.GetPage (printf "/editor/%s" $authorFile) }}
+ {{ if eq $n 0 }}
+
{{ end }}
- {{ $tit := .Title }}
- {{ if gt (len .Title) 54 }}
- {{ $tit = printf "%s…" (substr .Title 0 50) }}
- {{ end }}
-
- {{ partial "printsinglebody.html" . }}
- {{ .Content }}
- {{ $cssOutput = printf "%s\n%s" $cssOutput (replace $cssTemplate "_rplc_" .File.UniqueID) }}
- {{ $cssHashes = printf "%s css-%s-h2" $cssHashes .File.UniqueID }}
+ {{ $tit := .Title }}
+ {{ if gt (len .Title) 54 }}
+ {{ $tit = printf "%s…" (substr .Title 0 50) }}
+ {{ end }}
+
+ {{ partial "printsinglebody.html" . }}
+ {{ .Content }}
+ {{ .Scratch.Set "alreadyRendered" true }}
+ {{ $cssOutput = printf "%s\n%s" $cssOutput (replace $cssTemplate "_rplc_" .File.UniqueID) }}
+ {{ $cssHashes = printf "%s css-%s-h2" $cssHashes .File.UniqueID }}
+
+ {{end}}
{{ $kid := $s.Get (printf "/%s" .File) }}
{{ range $kid.has_children }}
-
- {{ $addS := 0 }}
- {{ with .Params.editors }}
- {{ $addS = len . }}
- {{ end }}
- {{ range $n, $authorFile := .Params.editors }}
- {{ $author := $.GetPage (printf "/editor/%s" $authorFile) }}
- {{ if eq $n 0 }}
-
editor{{ with (gt $addS 1) }}s{{ end }}⁄{{ $author.Title }}
- {{ else }}
- ,
{{ $author.Title }}
+ {{ if not (.Scratch.Get "alreadyRendered") }}
+
+ {{ $addS := 0 }}
+ {{ with .Params.editors }}
+ {{ $addS = len . }}
{{ end }}
- {{ end }}
- {{ with .Params.editors }}
{{ end }}
+ {{ range $n, $authorFile := .Params.editors }}
+ {{ $author := $.GetPage (printf "/editor/%s" $authorFile) }}
+ {{ if eq $n 0 }}
+
{{ end }}
- {{ $tit := .Title }}
- {{ if gt (len .Title) 54 }}
- {{ $tit = printf "%s…" (substr .Title 0 50) }}
- {{ end }}
-
- {{ partial "printsinglebody.html" . }}
- {{ .Content }}
- {{ $cssOutput = printf "%s\n%s" $cssOutput (replace $cssTemplate "_rplc_" .File.UniqueID) }}
- {{ $cssHashes = printf "%s css-%s-h2" $cssHashes .File.UniqueID }}
- {{ end }}
+ {{ $tit := .Title }}
+ {{ if gt (len .Title) 54 }}
+ {{ $tit = printf "%s…" (substr .Title 0 50) }}
+ {{ end }}
+
+ {{ partial "printsinglebody.html" . }}
+ {{ .Content }}
+ {{ $k := $s.Get (printf "/%s" .File) }}
+ {{ if gt (len $k.is_in) 0 }}
+
is in⁄{{- range $i, $v := $k.is_in -}}{{ if ne $i 0 }}, {{ end }}
{{ .Title }}{{- end -}}
+ {{ end }}
+
+ {{ .Scratch.Set "alreadyRendered" true }}
+ {{ $cssOutput = printf "%s\n%s" $cssOutput (replace $cssTemplate "_rplc_" .File.UniqueID) }}
+ {{ $cssHashes = printf "%s css-%s-h2" $cssHashes .File.UniqueID }}
+ {{ end }}
+ {{end}}
{{ end }}
{{ range where $.Site.RegularPages "Section" "in" (slice "author" "editor") }}
@@ -134,19 +146,12 @@
{{ if in .Page.Site.Params.sandpointsMentionedIn (substr .File.Dir 0 -1) }}
{{ $ss := $s.Get (printf "/%s" .File) }}
-
- {{ with $ss }}
-
mentioned in⁄
- {{ end }}
-
- {{ range $ss.backlinks }}
-
- {{ end }}
-
+ {{ with $ss }}
+
mentioned in⁄{{- range $i, $v := $ss.backlinks -}}{{ if ne $i 0 }}, {{ end }}
{{ .Title }}{{- end -}}
+ {{ end }}
{{ end }}
{{ end }}
+
{{ $cssOutput = printf "body {counter-reset: %s;}\n%s" $cssHashes $cssOutput }}
{{ $var := $cssOutput | resources.FromString "css/dyn.css" }}
{{ $dummy := $var.Permalink }}
diff --git a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/customizations/SpectreOfReflections/static/css/print.css b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/customizations/SpectreOfReflections/static/css/print.css
new file mode 100644
index 0000000..6240e1b
--- /dev/null
+++ b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/customizations/SpectreOfReflections/static/css/print.css
@@ -0,0 +1,253 @@
+@page {
+ size: 210mm 297mm;
+ margin-bottom: 20mm;
+ padding-bottom: 5mm;
+ margin-top: 15mm;
+}
+
+@page:left {
+ margin-right: 30mm;
+ margin-left: 40mm;
+ @bottom-left-corner {
+ content: counter(page);
+ font-size: 1rem;
+ vertical-align: text-top;
+ }
+
+ @bottom {
+ content: element(runningTitle);
+ position: relative;
+ }
+}
+
+@page:right {
+ margin-left: 30mm;
+ margin-right: 40mm;
+ @bottom-right-corner {
+ content: counter(page);
+ font-size: 1rem;
+ vertical-align: text-top;
+ }
+
+ @bottom {
+ content: element(runningAuthors);
+ position: relative;
+ }
+}
+
+@page crustpage :first {
+ @bottom-right-corner {
+ content: none;
+ }
+ @bottom {
+ content: none;
+ }
+}
+
+@media print {
+ html {
+ font-size: 1em;
+ box-sizing: border-box;
+ margin: 0;
+ padding: 0;
+ }
+
+ body {
+ font-size: 1rem;
+ padding: 0;
+ margin: 0;
+ }
+
+ .sup,
+ .hassup {
+ color: black;
+ }
+
+ .grid {
+ display: inline;
+ }
+
+ .coretitle {
+ margin-top: 3rem;
+ margin-bottom: 2rem;
+ font-size: 2.2rem;
+ }
+
+ .leftcolumn {
+ display: none;
+ }
+
+ .has,
+ .afterhas {
+ font-size: 1.1rem;
+ }
+
+ .mantle,
+ .crust {
+ margin-bottom: 0.2em;
+ }
+
+ .content {
+ padding: 0px;
+ margin: 0 auto;
+ margin-top: 4rem;
+ }
+
+ .hpar {
+ display: none;
+ }
+
+ .mantletitle {
+ font-size: 1.7rem;
+ }
+
+ .sessiongrid {
+ display: none;
+ }
+
+ #bibliography {
+ break-before: page;
+ }
+
+ .footnotes ol {
+ margin-top: 3rem;
+ padding-left: 0.9rem;
+ }
+
+ .footnotes hr {
+ border: none;
+ border-top: 0px;
+ text-align: left;
+ margin-top: 2rem;
+ margin-bottom: -2rem;
+ }
+
+ .footnotes hr::after {
+ content: "Endnotes";
+ font-size: 1.2rem;
+ font-weight: bold;
+ }
+
+ .runningTitle {
+ position: running(runningTitle);
+ }
+
+ .runningAuthors {
+ position: running(runningAuthors);
+ }
+
+ .hasauthors .afterhas {
+ font-size: 1.5rem;
+ }
+
+ .crustpage {
+ break-before: page;
+ page: crustpage;
+ }
+
+ .hasin {
+ display: none;
+ }
+
+ .abstract {
+ margin-left: 0;
+ margin-right: 0;
+ max-width: inherit;
+ }
+
+ .keywords {
+ margin-left: 0;
+ margin-right: 0;
+ max-width: inherit;
+ padding-left: 0;
+ padding-right: 0;
+ font-size: 0.9rem;
+ }
+ /*
+ h2:before,
+ h3:before,
+ h4:before,
+ h5:before {
+ content: none;
+ }
+ */
+ h2, h3, h4, h5, hr {
+ break-after: avoid;
+ }
+
+ .glosscontainer,
+ table,
+ table + p,
+ tr,
+ blockquote,
+ li {
+ break-inside: avoid;
+ }
+
+ .authorpage {
+ break-before: page;
+ }
+
+ img {
+ display: block;
+ max-height: 150mm;
+ width: auto;
+ break-after: avoid;
+ margin-bottom: 0.5rem;
+ margin-left: 1rem;
+ }
+
+ .crustoc {
+ position: relative;
+ bottom: 0
+ }
+
+ a.toc::before {
+ direction: rtl;
+ content: " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ";
+ line-height: 0;
+ height: 1px;
+ position: absolute;
+ bottom: 10px;
+ z-index: -1;
+ }
+
+ a.toc {
+ display: grid;
+ grid-template-columns: 1fr auto;
+ align-items: flex-end;
+ }
+
+ a.toc span {
+ }
+
+ a.toc .back {
+ background: white;
+ }
+
+ a.toc::after {
+ text-align: right;
+ float: right;
+ content: target-counter(attr(href url), page, decimal-leading-zero);
+ background: white;
+ padding-left: 0.1rem;
+ }
+
+ ol[data-split-from] {
+ padding-left: 0.5rem;
+ }
+
+ .longesttitle {
+ visibility: hidden;
+ cursor: default;
+ }
+
+ .backlinks {
+ border-left: 1px black solid;
+ padding-top: 0.1rem;
+ padding-bottom: 0.1rem;
+ padding-left: 0.5rem;
+ background-color: #00000009;
+ font-size: 0.9rem;
+ }
+}
diff --git a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/partials/printsinglebody.html b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/partials/printsinglebody.html
index 977f14b..676d824 100644
--- a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/partials/printsinglebody.html
+++ b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/partials/printsinglebody.html
@@ -8,6 +8,8 @@
{{ $currentFile := (printf "/%s" .File) }}
{{ $scratch := $s.Get $currentFile }}
+{{ $longestTitle := "" }}
+
{{ substr $currentDir 0 -1 }}⁄{{ .Title }}
@@ -64,7 +66,13 @@
+ {{ if gt (len .Title) (len $longestTitle) }}
+ {{ $longestTitle = .Title }}
+ {{ end }}
{{ end }}
+
{{ end }}
diff --git a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/static/css/print.css b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/static/css/print.css
index 8dcf660..4682b5e 100644
--- a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/static/css/print.css
+++ b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/static/css/print.css
@@ -200,7 +200,8 @@
bottom: 0
}
- .crustoc::after {
+ a.toc::before {
+ direction: rtl;
content: " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ";
line-height: 0;
height: 1px;
@@ -233,4 +234,9 @@
ol[data-split-from] {
padding-left: 0.5rem;
}
+
+ .longesttitle {
+ visibility: hidden;
+ cursor: default;
+ }
}
diff --git a/_vendor/modules.txt b/_vendor/modules.txt
index 8c04bf2..49968f6 100644
--- a/_vendor/modules.txt
+++ b/_vendor/modules.txt
@@ -1,2 +1,2 @@
-# git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20210903101832-6ea77e8efa6f
+# git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20210909101824-3c20212a423a
# git.sandpoints.org/Drawwell/SandpointsEditPage v0.0.0-20210825011616-e019d8a4d186