vendor updated
This commit is contained in:
parent
19ce49fa2f
commit
bf73ed31b6
10 changed files with 324 additions and 553 deletions
File diff suppressed because it is too large
Load diff
|
@ -64,7 +64,7 @@ window.addEventListener('DOMContentLoaded', (e) => {
|
|||
|
||||
}
|
||||
|
||||
document.querySelectorAll('#TableOfContents a').forEach(i => {
|
||||
document.querySelectorAll('#TableOfContents a, .anchorz, .footnote-backref, .footnote-ref').forEach(i => {
|
||||
i.addEventListener('click', e => {
|
||||
setTimeout(() => {
|
||||
window.scrollBy({top: document.querySelector('.header').clientHeight * -1.25, behavior: 'smooth'})}, 50);
|
||||
|
|
1
_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/data/books/catalog.json
generated
Normal file
1
_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/data/books/catalog.json
generated
Normal file
|
@ -0,0 +1 @@
|
|||
{}
|
|
@ -9,5 +9,7 @@
|
|||
"experiment": "experiments",
|
||||
"session": "sessions",
|
||||
"chapter": "chapters",
|
||||
"article": "articles"
|
||||
"article": "articles",
|
||||
"annex": "annexes",
|
||||
"author": "authors"
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{{- .Page.Scratch.Add "urls" (slice .Destination) -}}{{- $t := .Text -}}{{- if and (strings.HasPrefix .Destination "{") (.Destination | strings.Count "}") -}}{{- range first 1 (split .Destination "}") -}}{{- range $frmt := (split (substr . 1) ",") -}}{{- if eq $frmt "sc" -}}<span class="smallcaps">{{- $t -}}</span>{{- end -}}{{- end -}}{{- end -}}{{- else -}}<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener"{{ end }}><span class="sup">www⁄</span><i>{{ .Text | safeHTML }}</i></a>{{- end -}}
|
||||
{{- .Page.Scratch.Add "urls" (slice .Destination) -}}{{- $t := .Text -}}{{- $sup := "" -}}{{- if and (strings.HasPrefix .Destination "{") (.Destination | strings.Count "}") -}}{{- range first 1 (split .Destination "}") -}}{{- range $frmt := (split (substr . 1) ",") -}}{{- if eq $frmt "sc" -}}<span class="smallcaps">{{- $t -}}</span>{{- end -}}{{- end -}}{{- end -}}{{- else }}{{- if strings.HasPrefix .Destination "http" -}}{{- $sup = "www" -}}{{- end -}}{{- if strings.HasPrefix .Destination "#" -}}{{- $sup = "§" -}}{{- end -}}<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener"{{ else if strings.HasPrefix .Destination "#"}}class="anchorz"{{ end }}><span class="sup" style="font-size:0.7em">{{- $sup -}}⁄</span><i>{{ .Text | safeHTML }}</i></a>{{- end -}}
|
|
@ -52,7 +52,7 @@
|
|||
</div>
|
||||
</div>
|
||||
{{ else }}
|
||||
<a href="{{ with (index $scratch.is_in 0) }}{{ .RelPermalink }}{{ end }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}"><span class="sup">{{ with (index $scratch.is_in 0) }}{{ substr .Title 0 1 }}</span><i>{{ substr .Title 1 }}</i></a>{{ end }}
|
||||
<a href="{{ with (index $scratch.is_in 0) }}{{ .RelPermalink }}{{ end }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}"><span class="supt">{{ with (index $scratch.is_in 0) }}{{ substr .Title 0 1 }}</span><i>{{ substr .Title 1 }}</i></a>{{ end }}
|
||||
{{ end }}
|
||||
<span class="mantlebar"><i> » <a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></i></span>
|
||||
{{ end }}
|
||||
|
@ -72,7 +72,7 @@
|
|||
</div>
|
||||
{{ else }}
|
||||
{{ $home := index $is_in_is_in 0 }}
|
||||
<a href="{{ $home.RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}"><span class="sup">{{ substr $home.Title 0 1 }}</span><i>{{ substr $home.Title 1 }}</i></a>
|
||||
<a href="{{ $home.RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}"><span class="supt">{{ substr $home.Title 0 1 }}</span><i>{{ substr $home.Title 1 }}</i></a>
|
||||
{{ end }}
|
||||
|
||||
{{ with gt (len $scratch.is_in) 1 }}
|
||||
|
|
|
@ -8,41 +8,55 @@
|
|||
{{ $currentFile := (printf "/%s" .File) }}
|
||||
{{ $scratch := $s.Get $currentFile }}
|
||||
|
||||
<div class="{{ $scratch.depth }}title"><span class="sup">{{ substr $currentDir 0 -1 }}⁄{{ substr .Title 0 1 }}</span>{{ substr .Title 1 }}</div></div>
|
||||
<div class="{{ $scratch.depth | default "crust" }}title"><span class="supt">{{ substr $currentDir 0 -1 }}: {{ substr .Title 0 1 }}</span>{{ substr .Title 1 }}</div></div>
|
||||
|
||||
<div class="grid">
|
||||
<div class="leftcolumn">
|
||||
{{ if ne (trim .Page.TableOfContents "\n") "<nav id=\"TableOfContents\"></nav>" }}
|
||||
{{ .Page.TableOfContents }}
|
||||
<div class="leftcolumn">
|
||||
{{ if ne (trim .Page.TableOfContents "\n") "<nav id=\"TableOfContents\"></nav>" }}
|
||||
{{ .Page.TableOfContents }}
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="rightcolumn">
|
||||
{{ if in .Page.Site.Params.mentionedIn (substr $currentDir 0 -1) }}
|
||||
<div class="has">
|
||||
{{ with $scratch.backlinks }}
|
||||
<span class="sup">mentioned in⁄</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="rightcolumn">
|
||||
{{ if and (not (eq $scratch.depth "crust")) $scratch.has_children }}
|
||||
<div class="has">
|
||||
{{ with $scratch.has }}
|
||||
<span class="sup">has {{ $scratch.has }}⁄</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="afterhas">
|
||||
{{ range $scratch.has_children }}
|
||||
<div class="{{ $scratch.child_depth }}">
|
||||
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="afterhas">
|
||||
{{ range $scratch.backlinks }}
|
||||
<div class="{{ $scratch.child_depth }}">
|
||||
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if eq $scratch.depth "crust" }}
|
||||
<div class="has">
|
||||
<span class="sup">in {{ index $scratch.in 1 }}⁄</span>
|
||||
</div>
|
||||
<div class="afterhas">
|
||||
{{ range $scratch.is_in }}
|
||||
<div class="{{ substr $currentDir 0 -1 }}">
|
||||
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ if and (not (eq $scratch.depth "crust")) $scratch.has_children }}
|
||||
<div class="has">
|
||||
{{ with $scratch.has }}
|
||||
<span class="sup">has {{ $scratch.has }}⁄</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="afterhas">
|
||||
{{ range $scratch.has_children }}
|
||||
<div class="{{ $scratch.child_depth }}">
|
||||
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if eq $scratch.depth "crust" }}
|
||||
<div class="has">
|
||||
<span class="sup">in {{ index $scratch.in 1 }}⁄</span>
|
||||
</div>
|
||||
<div class="afterhas">
|
||||
{{ range $scratch.is_in }}
|
||||
<div class="{{ substr $currentDir 0 -1 }}">
|
||||
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
|
||||
{{ $http_links := (slice) }}
|
||||
{{ $library_links := (slice) }}
|
||||
{{ $anchor_links := (slice) }}
|
||||
{{ $other_links := (slice) }}
|
||||
|
||||
{{ with ($p.Scratch.Get "urls") }}
|
||||
|
@ -79,12 +80,22 @@
|
|||
{{ end }}
|
||||
|
||||
{{ with $other_links }}
|
||||
{{ $formattingN := 0 }}
|
||||
{{ $anchorN := 0 }}
|
||||
{{ range $i, $_ := $other_links }}
|
||||
{{ if eq $i 0 }}
|
||||
<details><summary>Other links ({{ len $other_links }}):</summary><ul>
|
||||
<details><summary>Anchor, formatting and other links ({{ len $other_links }}):</summary><ul>
|
||||
{{ end }}
|
||||
{{ if strings.HasPrefix $_ "#" }}
|
||||
{{ $anchorN = add $anchorN 1 }}
|
||||
{{ else if strings.HasPrefix $_ "{"}}
|
||||
{{ $formattingN = add $formattingN 1 }}
|
||||
{{ else }}
|
||||
<li><span class="sup">other⁄</span><a href="{{ $_ }}" target="_blank">{{ $_ }}</a></li>
|
||||
{{ end }}
|
||||
<li><span class="sup">other⁄</span><a href="{{ $_ }}" target="_blank">{{ $_ }}</a></li>
|
||||
{{ end }}
|
||||
{{ with $formattingN }}<li>{{ $formattingN }} formatting links.</a></li>{{ end }}
|
||||
{{ with $anchorN }}<li>{{ $anchorN }} anchor links.</a></li>{{ end }}
|
||||
</ul></details>
|
||||
{{ end }}
|
||||
|
||||
|
|
2
_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/static/css/site.min.css
generated
vendored
2
_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/static/css/site.min.css
generated
vendored
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
# git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20201205235831-9aec1be1e37a
|
||||
# git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20201209022150-1c0c9e5e7fcd
|
||||
|
|
Loading…
Add table
Reference in a new issue