latest vendor !publish!
This commit is contained in:
parent
3d2e755603
commit
abc860c3f1
|
@ -74,56 +74,68 @@
|
|||
|
||||
{{ range $scratch.has_children }}
|
||||
<div class="crustpage">
|
||||
{{ $addS := 0 }}
|
||||
{{ with .Params.editors }}
|
||||
{{ $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>
|
||||
{{ if not (.Scratch.Get "alreadyRendered") }}
|
||||
{{ $addS := 0 }}
|
||||
{{ with .Params.editors }}
|
||||
{{ $addS = len . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ with .Params.editors }}</div>{{ 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 }}
|
||||
{{ with .Params.editors }}</div>{{ end }}
|
||||
|
||||
{{ $tit := .Title }}
|
||||
{{ if gt (len .Title) 54 }}
|
||||
{{ $tit = printf "%s…" (substr .Title 0 50) }}
|
||||
{{ end }}
|
||||
<div class="runningTitle"><span class="sup">{{ index $scratch.crust 0 }}⁄</span><a href="#ph-{{ .File.UniqueID }}">{{ $tit }}</a></div>
|
||||
{{ 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 }}
|
||||
<div class="runningTitle"><span class="sup">{{ index $scratch.crust 0 }}⁄</span><a href="#ph-{{ .File.UniqueID }}">{{ $tit }}</a></div>
|
||||
{{ 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 }}
|
||||
<div class="crustpage">
|
||||
{{ $addS := 0 }}
|
||||
{{ with .Params.editors }}
|
||||
{{ $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>
|
||||
{{ if not (.Scratch.Get "alreadyRendered") }}
|
||||
<div class="crustpage">
|
||||
{{ $addS := 0 }}
|
||||
{{ with .Params.editors }}
|
||||
{{ $addS = len . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ with .Params.editors }}</div>{{ 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 }}
|
||||
{{ with .Params.editors }}</div>{{ end }}
|
||||
|
||||
{{ $tit := .Title }}
|
||||
{{ if gt (len .Title) 54 }}
|
||||
{{ $tit = printf "%s…" (substr .Title 0 50) }}
|
||||
{{ end }}
|
||||
<div class="runningTitle"><span class="sup">{{ index $scratch.crust 0 }}⁄</span><a href="#ph-{{ .File.UniqueID }}">{{ $tit }}</a></div>
|
||||
{{ 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 }}
|
||||
<div class="runningTitle"><span class="sup">{{ index $scratch.crust 0 }}⁄</span><a href="#ph-{{ .File.UniqueID }}">{{ $tit }}</a></div>
|
||||
{{ partial "printsinglebody.html" . }}
|
||||
{{ .Content }}
|
||||
{{ $k := $s.Get (printf "/%s" .File) }}
|
||||
{{ if gt (len $k.is_in) 0 }}
|
||||
<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 }}
|
||||
|
||||
{{ .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) }}
|
||||
<div class="has hasmentionedin">
|
||||
{{ with $ss }}
|
||||
<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>
|
||||
{{ with $ss }}
|
||||
<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>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ $cssOutput = printf "body {counter-reset: %s;}\n%s" $cssHashes $cssOutput }}
|
||||
{{ $var := $cssOutput | resources.FromString "css/dyn.css" }}
|
||||
{{ $dummy := $var.Permalink }}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -8,6 +8,8 @@
|
|||
{{ $currentFile := (printf "/%s" .File) }}
|
||||
{{ $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 class="grid">
|
||||
|
@ -64,7 +66,13 @@
|
|||
<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>
|
||||
</div>
|
||||
{{ if gt (len .Title) (len $longestTitle) }}
|
||||
{{ $longestTitle = .Title }}
|
||||
{{ 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>
|
||||
{{ end }}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue