Compare commits
No commits in common. "abc860c3f1a99b9e7e49f4837094301228a062e9" and "6bce6157b015991791dcc233f0c979758f72989e" have entirely different histories.
abc860c3f1
...
6bce6157b0
6 changed files with 57 additions and 330 deletions
|
@ -74,68 +74,56 @@
|
||||||
|
|
||||||
{{ range $scratch.has_children }}
|
{{ range $scratch.has_children }}
|
||||||
<div class="crustpage">
|
<div class="crustpage">
|
||||||
{{ if not (.Scratch.Get "alreadyRendered") }}
|
{{ $addS := 0 }}
|
||||||
{{ $addS := 0 }}
|
{{ with .Params.editors }}
|
||||||
{{ with .Params.editors }}
|
{{ $addS = len . }}
|
||||||
{{ $addS = len . }}
|
{{ end }}
|
||||||
|
{{ range $n, $authorFile := .Params.editors }}
|
||||||
|
{{ $author := $.GetPage (printf "/editor/%s" $authorFile) }}
|
||||||
|
{{ if eq $n 0 }}
|
||||||
|
<div class="runningAuthors"><span class="sup">editor{{ with (gt $addS 1) }}s{{ end }}⁄</span><a href="#ph-{{ $author.File.UniqueID }}">{{ $author.Title }}</a>
|
||||||
|
{{ else }}
|
||||||
|
, <a href="#ph-{{ $author.File.UniqueID }}">{{ $author.Title }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ range $n, $authorFile := .Params.editors }}
|
{{ end }}
|
||||||
{{ $author := $.GetPage (printf "/editor/%s" $authorFile) }}
|
{{ with .Params.editors }}</div>{{ end }}
|
||||||
{{ if eq $n 0 }}
|
|
||||||
<div class="runningAuthors"><span class="sup">editor{{ with (gt $addS 1) }}s{{ end }}⁄</span><a href="#ph-{{ $author.File.UniqueID }}">{{ $author.Title }}</a>
|
|
||||||
{{ else }}
|
|
||||||
, <a href="#ph-{{ $author.File.UniqueID }}">{{ $author.Title }}</a>
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
{{ with .Params.editors }}</div>{{ end }}
|
|
||||||
|
|
||||||
{{ $tit := .Title }}
|
{{ $tit := .Title }}
|
||||||
{{ if gt (len .Title) 54 }}
|
{{ if gt (len .Title) 54 }}
|
||||||
{{ $tit = printf "%s…" (substr .Title 0 50) }}
|
{{ $tit = printf "%s…" (substr .Title 0 50) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="runningTitle"><span class="sup">{{ index $scratch.crust 0 }}⁄</span><a href="#ph-{{ .File.UniqueID }}">{{ $tit }}</a></div>
|
<div class="runningTitle"><span class="sup">{{ index $scratch.crust 0 }}⁄</span><a href="#ph-{{ .File.UniqueID }}">{{ $tit }}</a></div>
|
||||||
{{ partial "printsinglebody.html" . }}
|
{{ partial "printsinglebody.html" . }}
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
{{ .Scratch.Set "alreadyRendered" true }}
|
{{ $cssOutput = printf "%s\n%s" $cssOutput (replace $cssTemplate "_rplc_" .File.UniqueID) }}
|
||||||
{{ $cssOutput = printf "%s\n%s" $cssOutput (replace $cssTemplate "_rplc_" .File.UniqueID) }}
|
{{ $cssHashes = printf "%s css-%s-h2" $cssHashes .File.UniqueID }}
|
||||||
{{ $cssHashes = printf "%s css-%s-h2" $cssHashes .File.UniqueID }}
|
|
||||||
|
|
||||||
{{end}}
|
|
||||||
{{ $kid := $s.Get (printf "/%s" .File) }}
|
{{ $kid := $s.Get (printf "/%s" .File) }}
|
||||||
{{ range $kid.has_children }}
|
{{ range $kid.has_children }}
|
||||||
{{ if not (.Scratch.Get "alreadyRendered") }}
|
<div class="crustpage">
|
||||||
<div class="crustpage">
|
{{ $addS := 0 }}
|
||||||
{{ $addS := 0 }}
|
{{ with .Params.editors }}
|
||||||
{{ with .Params.editors }}
|
{{ $addS = len . }}
|
||||||
{{ $addS = len . }}
|
{{ end }}
|
||||||
|
{{ range $n, $authorFile := .Params.editors }}
|
||||||
|
{{ $author := $.GetPage (printf "/editor/%s" $authorFile) }}
|
||||||
|
{{ if eq $n 0 }}
|
||||||
|
<div class="runningAuthors"><span class="sup">editor{{ with (gt $addS 1) }}s{{ end }}⁄</span><a href="#ph-{{ $author.File.UniqueID }}">{{ $author.Title }}</a>
|
||||||
|
{{ else }}
|
||||||
|
, <a href="#ph-{{ $author.File.UniqueID }}">{{ $author.Title }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ range $n, $authorFile := .Params.editors }}
|
{{ end }}
|
||||||
{{ $author := $.GetPage (printf "/editor/%s" $authorFile) }}
|
{{ with .Params.editors }}</div>{{ end }}
|
||||||
{{ if eq $n 0 }}
|
|
||||||
<div class="runningAuthors"><span class="sup">editor{{ with (gt $addS 1) }}s{{ end }}⁄</span><a href="#ph-{{ $author.File.UniqueID }}">{{ $author.Title }}</a>
|
|
||||||
{{ else }}
|
|
||||||
, <a href="#ph-{{ $author.File.UniqueID }}">{{ $author.Title }}</a>
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
{{ with .Params.editors }}</div>{{ end }}
|
|
||||||
|
|
||||||
{{ $tit := .Title }}
|
{{ $tit := .Title }}
|
||||||
{{ if gt (len .Title) 54 }}
|
{{ if gt (len .Title) 54 }}
|
||||||
{{ $tit = printf "%s…" (substr .Title 0 50) }}
|
{{ $tit = printf "%s…" (substr .Title 0 50) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="runningTitle"><span class="sup">{{ index $scratch.crust 0 }}⁄</span><a href="#ph-{{ .File.UniqueID }}">{{ $tit }}</a></div>
|
<div class="runningTitle"><span class="sup">{{ index $scratch.crust 0 }}⁄</span><a href="#ph-{{ .File.UniqueID }}">{{ $tit }}</a></div>
|
||||||
{{ partial "printsinglebody.html" . }}
|
{{ partial "printsinglebody.html" . }}
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
{{ $k := $s.Get (printf "/%s" .File) }}
|
{{ $cssOutput = printf "%s\n%s" $cssOutput (replace $cssTemplate "_rplc_" .File.UniqueID) }}
|
||||||
{{ if gt (len $k.is_in) 0 }}
|
{{ $cssHashes = printf "%s css-%s-h2" $cssHashes .File.UniqueID }}
|
||||||
<div class="backlinks"><span class="supt">is in⁄</span>{{- range $i, $v := $k.is_in -}}{{ if ne $i 0 }}, {{ end }}<a href="#ph-{{ .File.UniqueID }}">{{ .Title }}</a>{{- end -}}</div>
|
{{ 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 }}
|
{{ end }}
|
||||||
|
|
||||||
{{ range where $.Site.RegularPages "Section" "in" (slice "author" "editor") }}
|
{{ range where $.Site.RegularPages "Section" "in" (slice "author" "editor") }}
|
||||||
|
@ -146,12 +134,19 @@
|
||||||
|
|
||||||
{{ if in .Page.Site.Params.sandpointsMentionedIn (substr .File.Dir 0 -1) }}
|
{{ if in .Page.Site.Params.sandpointsMentionedIn (substr .File.Dir 0 -1) }}
|
||||||
{{ $ss := $s.Get (printf "/%s" .File) }}
|
{{ $ss := $s.Get (printf "/%s" .File) }}
|
||||||
{{ with $ss }}
|
<div class="has hasmentionedin">
|
||||||
<div class="backlinks"><span class="supt">mentioned in⁄</span>{{- range $i, $v := $ss.backlinks -}}{{ if ne $i 0 }}, {{ end }}<a href="#ph-{{ .File.UniqueID }}">{{ .Title }}</a>{{- end -}}</div>
|
{{ with $ss }}
|
||||||
{{ end }}
|
<div class="hassup">mentioned in⁄</div>
|
||||||
|
{{ end }}
|
||||||
|
<div class="afterhas">
|
||||||
|
{{ range $ss.backlinks }}
|
||||||
|
<div class="{{ $ss.child_depth }}">
|
||||||
|
<a href="#ph-{{ .File.UniqueID }}">{{ .Title }}</a>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
</div></div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $cssOutput = printf "body {counter-reset: %s;}\n%s" $cssHashes $cssOutput }}
|
{{ $cssOutput = printf "body {counter-reset: %s;}\n%s" $cssHashes $cssOutput }}
|
||||||
{{ $var := $cssOutput | resources.FromString "css/dyn.css" }}
|
{{ $var := $cssOutput | resources.FromString "css/dyn.css" }}
|
||||||
{{ $dummy := $var.Permalink }}
|
{{ $dummy := $var.Permalink }}
|
||||||
|
|
|
@ -1,253 +0,0 @@
|
||||||
@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;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -8,8 +8,6 @@
|
||||||
{{ $currentFile := (printf "/%s" .File) }}
|
{{ $currentFile := (printf "/%s" .File) }}
|
||||||
{{ $scratch := $s.Get $currentFile }}
|
{{ $scratch := $s.Get $currentFile }}
|
||||||
|
|
||||||
{{ $longestTitle := "" }}
|
|
||||||
|
|
||||||
<div id="ph-{{ .File.UniqueID }}" class="{{ $scratch.depth | default "crust" }}title"><span class="supt">{{ substr $currentDir 0 -1 }}⁄</span>{{ .Title }}</div>
|
<div id="ph-{{ .File.UniqueID }}" class="{{ $scratch.depth | default "crust" }}title"><span class="supt">{{ substr $currentDir 0 -1 }}⁄</span>{{ .Title }}</div>
|
||||||
|
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
|
@ -66,13 +64,7 @@
|
||||||
<div class="{{ $scratch.child_depth }} crustoc">
|
<div class="{{ $scratch.child_depth }} crustoc">
|
||||||
<a class="toc" href="#ph-{{ .File.UniqueID }}"><span><span class="back">{{ .Title }} {{with $authors}}({{ $authors }}){{ end }}</span></span></a>
|
<a class="toc" href="#ph-{{ .File.UniqueID }}"><span><span class="back">{{ .Title }} {{with $authors}}({{ $authors }}){{ end }}</span></span></a>
|
||||||
</div>
|
</div>
|
||||||
{{ if gt (len .Title) (len $longestTitle) }}
|
|
||||||
{{ $longestTitle = .Title }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="{{ $scratch.child_depth }} crustoc longesttitle">
|
|
||||||
<a class="toc" href="javascript:;"><span><span class="back">{{ $longestTitle }}.....</span></span></a>
|
|
||||||
</div>
|
|
||||||
</div></div>
|
</div></div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
|
@ -200,8 +200,7 @@
|
||||||
bottom: 0
|
bottom: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
a.toc::before {
|
.crustoc::after {
|
||||||
direction: rtl;
|
|
||||||
content: " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ";
|
content: " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ";
|
||||||
line-height: 0;
|
line-height: 0;
|
||||||
height: 1px;
|
height: 1px;
|
||||||
|
@ -234,9 +233,4 @@
|
||||||
ol[data-split-from] {
|
ol[data-split-from] {
|
||||||
padding-left: 0.5rem;
|
padding-left: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.longesttitle {
|
|
||||||
visibility: hidden;
|
|
||||||
cursor: default;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
# git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20210909101824-3c20212a423a
|
# git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20210903101832-6ea77e8efa6f
|
||||||
# git.sandpoints.org/Drawwell/SandpointsEditPage v0.0.0-20210825011616-e019d8a4d186
|
# git.sandpoints.org/Drawwell/SandpointsEditPage v0.0.0-20210825011616-e019d8a4d186
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
+++
|
+++
|
||||||
editors = ["claudia.md"]
|
|
||||||
has_reflections = ["margine.md", "somesouthernquestions.md", "filrouge.md", "cohabitingcoexistence.md", "listofallhighlights.md", "listofallhighlights2.md", "listofallhighlights3.md", "listofallhighlights4.md", "listofallhighlights5.md", "listofallhighlights6.md"]
|
has_reflections = ["margine.md", "somesouthernquestions.md", "filrouge.md", "cohabitingcoexistence.md", "listofallhighlights.md", "listofallhighlights2.md", "listofallhighlights3.md", "listofallhighlights4.md", "listofallhighlights5.md", "listofallhighlights6.md"]
|
||||||
title = "A differenza del presente"
|
title = "A differenza del presente"
|
||||||
+++
|
+++
|
||||||
|
|
Loading…
Add table
Reference in a new issue