22 changed files with 720 additions and 496 deletions
@ -0,0 +1,101 @@
|
||||
{{ $s := partialCached "scratch.html" . }} |
||||
|
||||
{{ $currentDir := "" }} |
||||
{{ with .File }} |
||||
{{ $currentDir = .Dir }} |
||||
{{ end }} |
||||
|
||||
{{ $currentFile := (printf "/%s" .File) }} |
||||
{{ $scratch := $s.Get $currentFile }} |
||||
|
||||
{{ $is_in_ := newScratch }} |
||||
{{ with eq $scratch.depth "crust" }} |
||||
{{ range $scratch.is_in }} |
||||
{{ range $k,$v := $s.Get (printf "/%s" .File) }} |
||||
{{ if eq $k "is_in" }} |
||||
{{ range $v }} |
||||
{{ $is_in_.Set (printf "/%s" .File) (printf "/%s" .File) }} |
||||
{{ end }} |
||||
{{ end }} |
||||
{{ end }} |
||||
{{ end }} |
||||
{{ end }} |
||||
|
||||
{{ $is_in_is_in := (slice) }} |
||||
{{ range $is_in_.Values }} |
||||
{{ $is_in_is_in = $is_in_is_in | append ($.GetPage .) }} |
||||
{{ end }} |
||||
|
||||
{{ if eq hugo.Environment "preview" }} |
||||
<div class="headiter"> |
||||
<a class="edit-button" target="_blank" href="{{ $.Site.Params.sandpointsGiteaUrl }}/_edit/master/content/{{ .File }}">EDIT_THIS</a> |
||||
{{ with $scratch.core }}<a class="edit-button" target="_blank" href="{{ $.Site.Params.sandpointsGiteaUrl }}/_new/master/content/{{ index . 0 }}/">ADD_{{ index . 0 | upper }}</a>{{ end }} |
||||
{{ with $scratch.mantle }}<a class="edit-button" target="_blank" href="{{ $.Site.Params.sandpointsGiteaUrl }}/_new/master/content/{{ index . 0 }}/">ADD_{{ index . 0 | upper }}</a>{{ end }} |
||||
{{ with $scratch.crust }}<a class="edit-button" target="_blank" href="{{ $.Site.Params.sandpointsGiteaUrl }}/_new/master/content/{{ index . 0 }}/">ADD_{{ index . 0 | upper }}</a>{{ end }} |
||||
{{ if not $scratch.core }}<a class="edit-button" target="_blank" href="{{ $.Site.Params.sandpointsGiteaUrl }}/_new/master/content/{{ $currentDir }}">ADD_{{ substr $currentDir 0 -1 | upper }}</a>{{ end }} |
||||
<a class="edit-button" target="_blank" href="{{ $.Site.Params.sandpointsGiteaUrl }}/_edit/master/PUBLISH.trigger.md">PUBLISH</a> |
||||
<a class="edit-button" target="_blank" href="{{ $.Site.Params.sandpointsGiteaUrl }}"> ? </a> |
||||
</div> |
||||
{{ end }} |
||||
|
||||
<div class="header"> |
||||
<a title="{{ $.Site.Home.Title }}'s Bibliotheke" href="/library/BROWSE_LIBRARY.html" class="bibliotheke" target="_blank"> |
||||
<img src="/images/bibliotheke.svg" /> |
||||
</a> |
||||
<div class="breadcrumbs"> |
||||
{{ if eq $scratch.depth "mantle" }} |
||||
{{ with gt (len $scratch.is_in) 1 }} |
||||
<div class="ddmenu"> |
||||
<input id="toggly0" type="checkbox"> |
||||
<label for="toggly0" tabindex="1"><span class="sup">cf. </span><a href="{{ with (index $scratch.is_in 0) }}{{ .RelPermalink }}{{ end }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ with index $scratch.is_in 0 }}<i>{{ .Title }}</i></a> {{ end }}</label> |
||||
<div class="hiddendiv"> |
||||
<ul class="mt-4"> |
||||
{{ range after 1 $scratch.is_in }} |
||||
<li><a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}"><i>{{ .Title }}</i></a></li> |
||||
{{ end }} |
||||
</ul> |
||||
</div> |
||||
</div> |
||||
{{ else }} |
||||
<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) }}</span><i>{{ .Title }}</i></a>{{ end }} |
||||
{{ end }} |
||||
<span class="mantlebar"><i> » <a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></i></span> |
||||
{{ end }} |
||||
|
||||
{{ if eq $scratch.depth "crust" }} |
||||
{{ with gt (len $is_in_is_in) 1 }} |
||||
<div class="ddmenu"> |
||||
<input id="toggly1" type="checkbox"> |
||||
<label for="toggly1" tabindex="1"><span class="sup">cf. </span><a href="{{ with (index $is_in_is_in 0) }}{{ .RelPermalink }}{{ end }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ with (index $is_in_is_in 0) }}<i>{{ .Title }}</i></a> {{ end }}</label> |
||||
<div class="hiddendiv"> |
||||
<ul class="mt-4"> |
||||
{{ range after 1 $is_in_is_in }} |
||||
<li><a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}"><i>{{ .Title }}</i></a></li> |
||||
{{ end }} |
||||
</ul> |
||||
</div> |
||||
</div> |
||||
{{ else }} |
||||
{{ $home := index $is_in_is_in 0 }} |
||||
<a href="{{ $home.RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}"><i>{{ $home.Title }}</i></a> |
||||
{{ end }} |
||||
|
||||
{{ with gt (len $scratch.is_in) 1 }} |
||||
» |
||||
<div class="ddmenu"> |
||||
<input id="toggly" type="checkbox"> |
||||
<label for="toggly" tabindex="1"><span class="sup">cf. </span><a href="{{ with (index $scratch.is_in 0) }}{{ .RelPermalink }}{{ end }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ with (index $scratch.is_in 0) }}<i>{{ .Title }}</i></a> {{ end }}</label> |
||||
<div class="hiddendiv"> |
||||
<ul class="mt-4"> |
||||
{{ range after 1 $scratch.is_in }} |
||||
<li><a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}"><i>{{ .Title }}</i></a></li> |
||||
{{ end }} |
||||
</ul> |
||||
</div> |
||||
</div> |
||||
{{ else }}» <a href="{{ with (index $scratch.is_in 0) }}{{ .RelPermalink }}{{ end }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ with (index $scratch.is_in 0) }}<i>{{ .Title }}</i></a>{{ end }} |
||||
{{ end }} |
||||
<span class="mantlebar"><i> » <a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></i></span> |
||||
{{ end }} |
||||
</div> |
||||
</div> |
@ -0,0 +1,81 @@
|
||||
{{ $s := partialCached "scratch.html" . }} |
||||
|
||||
{{ $currentNode := . }} |
||||
{{ $currentDir := "" }} |
||||
{{ with .File }} |
||||
{{ $currentDir = .Dir }} |
||||
{{ end }} |
||||
{{ $currentFile := (printf "/%s" .File) }} |
||||
{{ $scratch := $s.Get $currentFile }} |
||||
|
||||
<div class="{{ $scratch.depth | default "crust" }}title"><span class="supt">{{ substr $currentDir 0 -1 }}⁄</span>{{ .Title }}</div></div> |
||||
|
||||
<div class="grid"> |
||||
<div class="leftcolumn"> |
||||
{{ if ne (trim .Page.TableOfContents "\n") "<nav id=\"TableOfContents\"></nav>" }} |
||||
{{ .Page.TableOfContents }} |
||||
{{ end }} |
||||
</div> |
||||
<div class="rightcolumn"> |
||||
{{- range $k, $v := .Page.Params.authors -}} |
||||
{{- with $.GetPage (printf "/author/%s" $v) -}} |
||||
{{- with not $k -}} |
||||
<div class="has hasauthors"> |
||||
<div class="hassup">author{{ with $.Page.Params.authors }}{{ if gt (len .) 1 }}s{{ end }}{{ end }}⁄</div> |
||||
<div class="afterhas"> |
||||
{{- end -}} |
||||
<div class="crust"> |
||||
<a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a> |
||||
</div> |
||||
{{- end -}} |
||||
{{- end -}} |
||||
{{- with .Page.Params.authors -}}</div></div>{{- end -}} |
||||
|
||||
{{ if in .Page.Site.Params.sandpointsMentionedIn (substr $currentDir 0 -1) }} |
||||
<div class="has"> |
||||
{{ with $scratch.backlinks }} |
||||
<div class="hassup">mentioned in⁄</div> |
||||
{{ end }} |
||||
<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 }} |
||||
</div></div> |
||||
{{ end }} |
||||
|
||||
{{ if and (not (eq $scratch.depth "crust")) $scratch.has_children }} |
||||
<div class="has"> |
||||
{{ with $scratch.has }} |
||||
<div class="hassup">has {{ $scratch.has }}⁄</div> |
||||
{{ end }} |
||||
<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> |
||||
{{ end }} |
||||
|
||||
{{ if eq $scratch.depth "crust" }} |
||||
<div class="has"> |
||||
<div class="hassup">in {{ index $scratch.in 1 }}⁄</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 }} |
||||
</div></div> |
||||
{{ end }} |
||||
</div> |
||||
</div> |
||||
|
||||
|
||||
{{ with .Page.Params.abstract }}<div class="journal"></div><div class="abstract"><span class="supt">abstract⁄</span>{{ . | markdownify }}</div>{{ end }} |
||||
|
||||
{{- $vld := false -}}{{- range $k, $v := .Page.Params.keywords -}}{{- if eq $k 0 -}}{{- $vld = true -}}<div |
||||
class="keywords"><span class="sup">keywords⁄</span>{{- $v -}}{{- else -}}, {{- $v -}}{{- end -}}{{- end -}}{{- with $vld -}}</div>{{- end -}} |
||||
{{ with .Page.Params.abstract }}</div>{{ end }} |
File diff suppressed because one or more lines are too long
@ -1,13 +1,13 @@
|
||||
<!DOCTYPE html> |
||||
|
||||
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-us{{ end }}"> |
||||
<head> |
||||
{{- partialCached "head.html" . -}} |
||||
<title>{{- .Title }} - {{ .Site.Title -}}</title> |
||||
{{- partialCached "sandpointjs.html" . .RelPermalink -}} |
||||
</head> |
||||
<body> |
||||
{{- block "singlebody" . }}{{- end }} |
||||
{{- partialCached "footer.html" . -}} |
||||
</body> |
||||
<head> |
||||
{{- partialCached "head.html" . -}} |
||||
<title>{{- .Title }} - {{ .Site.Title -}}</title> |
||||
{{- partialCached "sandpointjs.html" . .RelPermalink -}} |
||||
</head> |
||||
<body> |
||||
{{- block "singlebody" . }}{{- end }} |
||||
{{- partialCached "footer.html" . -}} |
||||
</body> |
||||
</html> |
||||
|
@ -1,36 +1,35 @@
|
||||
{{ define "singlebody" }} |
||||
|
||||
{{ $currentNode := . }} |
||||
{{ $currentDir := "" }} |
||||
{{ with .File }} |
||||
{{ $currentDir = .Dir }} |
||||
{{ end }} |
||||
{{ $currentFile := (printf "/%s" .File) }} |
||||
|
||||
{{ $currentNode := . }} |
||||
{{ $currentDir := "" }} |
||||
{{ with .File }} |
||||
{{ $currentDir = .Dir }} |
||||
{{ end }} |
||||
{{ $currentFile := (printf "/%s" .File) }} |
||||
|
||||
<div class="coretitle"><span class="supt">Sitemap⁄{{ substr $.Site.Title 0 1 }}</span>{{ substr $.Site.Title 1 }} ({{ $currentDir }})</div> |
||||
<div class="coretitle"><span class="supt">Sitemap⁄{{ substr $.Site.Title 0 1 }}</span>{{ substr $.Site.Title 1 }} ({{ $currentDir }})</div> |
||||
|
||||
{{ $s := partialCached "scratch.html" . }} |
||||
{{ $noTriad := (slice) }} |
||||
{{ range $p := .Site.RegularPages }} |
||||
{{ $scratch := $s.Get (printf "/%s" $p.File) }} |
||||
{{ if eq $scratch.depth "core" }} |
||||
<div class="sitemap" ><div class="{{ with $p.File }}{{ if eq $currentDir .Dir }}highline{{ end }}{{ end }}"><a href="{{- $p.RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with $p.Title}} title="{{- $p.Title -}}"{{- end -}}><span class="sup">{{- substr $p.File.Dir 0 -1 -}}⁄</span>{{- $p.Title -}}</a></div> |
||||
{{ range $coreKid := $scratch.has_children }} |
||||
<div class="sitemap"><a href="{{- $coreKid.RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with $coreKid.Title}} title="{{- $coreKid.Title -}}"{{- end -}}><div class="{{ with $coreKid.File }}{{ if eq $currentDir .Dir }}highline{{ end }}{{ end }}"><span class="sup">{{- substr $coreKid.File.Dir 0 -1 -}}⁄</span>{{- $coreKid.Title -}}</a></div> |
||||
{{ $scratchCKid := $s.Get (printf "/%s" $coreKid.File) }} |
||||
{{ range $mantleKid := $scratchCKid.has_children }} |
||||
<div class="sitemap"><div class="{{ with $mantleKid.File }}{{ if eq $currentDir .Dir }} highline{{ end }}{{ end }}"><a href="{{- $mantleKid.RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with $mantleKid.Title}} title="{{- $mantleKid.Title -}}"{{- end -}}><span class="sup">{{ with $mantleKid.File }}{{substr .Dir 0 -1 -}}⁄{{ end }}</span>{{- $mantleKid.Title -}}</a></div></div> |
||||
{{ $s := partialCached "scratch.html" . }} |
||||
{{ $noTriad := (slice) }} |
||||
{{ range $p := .Site.RegularPages }} |
||||
{{ $scratch := $s.Get (printf "/%s" $p.File) }} |
||||
{{ if eq $scratch.depth "core" }} |
||||
<div class="sitemap" ><div class="{{ with $p.File }}{{ if eq $currentDir .Dir }}highline{{ end }}{{ end }}"><a href="{{- $p.RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with $p.Title}} title="{{- $p.Title -}}"{{- end -}}><span class="sup">{{- substr $p.File.Dir 0 -1 -}}⁄</span>{{- $p.Title -}}</a></div> |
||||
{{ range $coreKid := $scratch.has_children }} |
||||
<div class="sitemap"><a href="{{- $coreKid.RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with $coreKid.Title}} title="{{- $coreKid.Title -}}"{{- end -}}><div class="{{ with $coreKid.File }}{{ if eq $currentDir .Dir }}highline{{ end }}{{ end }}"><span class="sup">{{- substr $coreKid.File.Dir 0 -1 -}}⁄</span>{{- $coreKid.Title -}}</a></div> |
||||
{{ $scratchCKid := $s.Get (printf "/%s" $coreKid.File) }} |
||||
{{ range $mantleKid := $scratchCKid.has_children }} |
||||
<div class="sitemap"><div class="{{ with $mantleKid.File }}{{ if eq $currentDir .Dir }} highline{{ end }}{{ end }}"><a href="{{- $mantleKid.RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with $mantleKid.Title}} title="{{- $mantleKid.Title -}}"{{- end -}}><span class="sup">{{ with $mantleKid.File }}{{substr .Dir 0 -1 -}}⁄{{ end }}</span>{{- $mantleKid.Title -}}</a></div></div> |
||||
{{ end }} |
||||
</div> |
||||
{{ end }} |
||||
{{ else if not (in (slice "core" "mantle" "crust") $scratch.depth)}} |
||||
{{ $noTriad = $noTriad | append $p }} |
||||
{{ else }} |
||||
</div> |
||||
{{ end }} |
||||
</div> |
||||
{{ end }} |
||||
{{ else if not (in (slice "core" "mantle" "crust") $scratch.depth)}} |
||||
{{ $noTriad = $noTriad | append $p }} |
||||
{{ else }} |
||||
</div> |
||||
{{ end }} |
||||
{{ end }} |
||||
{{ range $noTriad }} |
||||
<div class="sitemap {{ with .File }}{{ if eq $currentDir .Dir }} highline{{ end }}{{ end }}"><a href="{{- .RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with .Title }} title="{{- . -}}"{{- end -}}><span class="sup">{{- substr .File.Dir 0 -1 -}}⁄</span>{{- .Title -}}</a></div> |
||||
{{ end }} |
||||
{{ range $noTriad }} |
||||
<div class="sitemap {{ with .File }}{{ if eq $currentDir .Dir }} highline{{ end }}{{ end }}"><a href="{{- .RelPermalink -}}{{- if eq hugo.Environment "offline" -}}index.html{{- end -}}"{{- with .Title }} title="{{- . -}}"{{- end -}}><span class="sup">{{- substr .File.Dir 0 -1 -}}⁄</span>{{- .Title -}}</a></div> |
||||
{{ end }} |
||||
{{ end }} |
||||
|
@ -1,11 +1,6 @@
|
||||
{{- define "singlebody" -}} |
||||
|
||||
{{- partialCached "header.html" . .RelPermalink -}} |
||||
|
||||
<h1>{{ .Title }}</h1> |
||||
|
||||
{{- partialCached "singlebody.html" . .RelPermalink -}} |
||||
|
||||
<div class="content">{{ .Content }}</div> |
||||
|
||||
{{- partialCached "header.html" . .RelPermalink -}} |
||||
<h1>{{ .Title }}</h1> |
||||
{{- partialCached "singlebody.html" . .RelPermalink -}} |
||||
<div class="content">{{ .Content }}</div> |
||||
{{- end -}} |
||||
|
@ -1 +0,0 @@
|
||||
{{ .Scratch }} |
@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html> |
||||
|
||||
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{- else -}}en-us{{- end -}}"> |
||||
<head> |
||||
{{- partialCached "head.html" . -}} |
||||
{{- partial "pagedjs.html" . -}} |
||||
</head> |
||||
<body> |
||||
<article> |
||||
{{- block "singlebody" . -}}{{- end -}} |
||||
</article> |
||||
</body> |
||||
</html> |
@ -0,0 +1,24 @@
|
||||
{{- define "singlebody" -}} |
||||
{{ $s := partialCached "scratch.html" . }} |
||||
{{ $p := $.GetPage .Params.print }} |
||||
{{ $scratch := $s.Get (printf "/%s" $p.File) }} |
||||
|
||||
{{ $currentDir := "" }} |
||||
{{ with .File }} |
||||
{{ $currentDir = .Dir }} |
||||
{{ end }} |
||||
|
||||
<div class="print0">{{ partial "singlebody.html" $p }}</div> |
||||
<div class="content">{{ $p.Content }} |
||||
{{ range $printPage := $scratch.has_cildren }} |
||||
<div class="print1">{{ partial "singlebody.html" $printPage }}</div> |
||||
<div class="content">{{ $printPage.Content }} |
||||
{{ $printPageScratch := $s.Get (printf "/%s" $printPage.File) }} |
||||
{{ range $printPageKid := $printPageScratch.has_children }} |
||||
<div class="print2">{{ partial "singlebody.html" $printPageKid }}</div> |
||||
<div class="content">{{ $printPageKid.Content }} |
||||
{{ . }} |
||||
{{ end }} |
||||
</div> |
||||
{{ end }} |
||||
{{- end -}} |
@ -1,25 +1,25 @@
|
||||
{{ $inn := .Inner | $.Page.RenderString }} |
||||
<div class="glosscontainer"> |
||||
<div class="gloss"> |
||||
{{- range $g := (split $inn "\n") -}} |
||||
{{- if hasPrefix $g "{r}" -}} |
||||
<div class="glossregular"> |
||||
{{- substr $g 3 | htmlUnescape | safeHTML -}} |
||||
</div> |
||||
{{- else if hasPrefix $g "{g}" -}} |
||||
<div class="glossline"> |
||||
{{- range (split (substr $g 3) "|") -}} |
||||
{{- with . -}} |
||||
<div class="glosswords"> |
||||
{{- range (split . "," ) -}} |
||||
<div class="glossword">{{- . | htmlUnescape | safeHTML -}}</div> |
||||
{{- end -}} |
||||
</div> |
||||
{{- end -}} |
||||
{{- end -}} |
||||
</div> |
||||
<div class="gloss"> |
||||
{{- range $g := (split $inn "\n") -}} |
||||
{{- if hasPrefix $g "{r}" -}} |
||||
<div class="glossregular"> |
||||
{{- substr $g 3 | htmlUnescape | safeHTML -}} |
||||
</div> |
||||
{{- else if hasPrefix $g "{g}" -}} |
||||
<div class="glossline"> |
||||
{{- range (split (substr $g 3) "|") -}} |
||||
{{- with . -}} |
||||
<div class="glosswords"> |
||||
{{- range (split . "," ) -}} |
||||
<div class="glossword">{{- . | htmlUnescape | safeHTML -}}</div> |
||||
{{- end -}} |
||||
</div> |
||||
{{- end -}} |
||||
{{- end -}} |
||||
</div> |
||||
<div class="glossnumber {{ with $.Page.Params.glossnumberAuto }}glossnumberAuto{{ end }}">{{ with .Get 0 }}{{ . }}{{ end}}</div> |
||||
</div> |
||||
{{- end -}} |
||||
</div> |
||||
{{- end -}} |
||||
{{- end -}} |
||||
</div> |
||||
<div class="glossnumber {{ with $.Page.Params.glossnumberAuto }}glossnumberAuto{{ end }}">{{ with .Get 0 }}{{ . }}{{ end}}</div> |
||||
</div> |
||||
|
@ -1,10 +1,10 @@
|
||||
{{ $id := index .Params 0 }} |
||||
{{ $type := index .Params 1 | default "track" }} |
||||
<iframe |
||||
width="100%" |
||||
height="300" |
||||
scrolling="no" |
||||
frameborder="no" |
||||
allow="autoplay" |
||||
src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/{{ $type }}s/{{ $id }}&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true"> |
||||
</iframe> |
||||
width="100%" |
||||
height="300" |
||||
scrolling="no" |
||||
frameborder="no" |
||||
allow="autoplay" |
||||
src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/{{ $type }}s/{{ $id }}&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true"> |
||||
</iframe> |
||||
|
@ -1,12 +1,12 @@
|
||||
<!DOCTYPE html> |
||||
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-us{{ end }}"> |
||||
<head> |
||||
{{- partialCached "head.html" . -}} |
||||
<title>{{- .Title }} - {{ .Site.Title -}}</title> |
||||
{{- partialCached "sandpointjs.html" . .RelPermalink -}} |
||||
</head> |
||||
<body> |
||||
{{ block "urls" . }}{{ end }} |
||||
{{- partialCached "footer.html" . -}} |
||||
</body> |
||||
<head> |
||||
{{- partialCached "head.html" . -}} |
||||
<title>{{- .Title }} - {{ .Site.Title -}}</title> |
||||
{{- partialCached "sandpointjs.html" . .RelPermalink -}} |
||||
</head> |
||||
<body> |
||||
{{ block "urls" . }}{{ end }} |
||||
{{- partialCached "footer.html" . -}} |
||||
</body> |
||||
</html> |
||||
|
@ -1,106 +1,106 @@
|
||||
{{ define "urls" }} |
||||
<h2>Backlinks, outgoing URLs, bibliographic references and internal links:</h2> |
||||
{{ $s := partialCached "scratch.html" . }} |
||||
<h2>Backlinks, outgoing URLs, bibliographic references and internal links:</h2> |
||||
{{ $s := partialCached "scratch.html" . }} |
||||
|
||||
<div id="toggleAllLinks" onclick="toggleAllLinks()">[toggle expand/collapse]</div> |
||||
<p></p> |
||||
{{ range $p := .Site.RegularPages }} |
||||
{{ with or ($p.Scratch.Get "urls") ($p.Scratch.Get "bibs") ($p.Scratch.Get "links") ($p.Scratch.Get "backlinks" )}} |
||||
<details><summary>{{ with $p.File }}<span class="sup">{{- substr .Dir 0 -1 -}}⁄</span>{{ end }}<a href="{{ $p.RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ $p.Title }}</a></summary> |
||||
<div id="toggleAllLinks" onclick="toggleAllLinks()">[toggle expand/collapse]</div> |
||||
<p></p> |
||||
{{ range $p := .Site.RegularPages }} |
||||
{{ with or ($p.Scratch.Get "urls") ($p.Scratch.Get "bibs") ($p.Scratch.Get "links") ($p.Scratch.Get "backlinks" )}} |
||||
<details><summary>{{ with $p.File }}<span class="sup">{{- substr .Dir 0 -1 -}}⁄</span>{{ end }}<a href="{{ $p.RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ $p.Title }}</a></summary> |
||||
|
||||
{{ $pPath := printf "/%s" $p.File }} |
||||
{{ with $ss := $s.Get $pPath }} |
||||
{{ with $ss.backlinks }} |
||||
{{ range $i, $_ := $ss.backlinks }} |
||||
{{ if eq $i 0 }} |
||||
<details><summary>Mentioned in other Sandpoints pages ({{ len $ss.backlinks }}):</summary><ul> |
||||
{{ end }} |
||||
<li>{{ with $_.File }}<span class="sup">{{ substr .Dir 0 -1 }}⁄</span>{{ end }}<a href="{{ $_.RelPermalink }}">{{ $_.Title }}</a></li> |
||||
{{ end }} |
||||
</ul></details> |
||||
{{ end }} |
||||
{{ end }} |
||||
{{ $pPath := printf "/%s" $p.File }} |
||||
{{ with $ss := $s.Get $pPath }} |
||||
{{ with $ss.backlinks }} |
||||
{{ range $i, $_ := $ss.backlinks }} |
||||
{{ if eq $i 0 }} |
||||
<details><summary>Mentioned in other Sandpoints pages ({{ len $ss.backlinks }}):</summary><ul> |
||||
{{ end }} |
||||
<li>{{ with $_.File }}<span class="sup">{{ substr .Dir 0 -1 }}⁄</span>{{ end }}<a href="{{ $_.RelPermalink }}">{{ $_.Title }}</a></li> |
||||
{{ end }} |
||||
</ul></details> |
||||
{{ end }} |
||||
{{ end }} |
||||
|
||||
{{ with ($p.Scratch.Get "links") }} |
||||
{{ range $i, $_ := ($p.Scratch.Get "links") }} |
||||
{{ if eq $i 0 }} |
||||
<details><summary>Internal links to other Sandpoint pages ({{ len ($p.Scratch.Get "links") }}):</summary><ul> |
||||
{{ end }} |
||||
<li>{{ with $_.File }}<span class="sup">{{ substr .Dir 0 -1 }}⁄</span>{{ end }}<a href="{{ $_.RelPermalink }}">{{ $_.Title }}</a></li> |
||||
{{ end }} |
||||
</ul></details> |
||||
{{ end }} |
||||
{{ with ($p.Scratch.Get "links") }} |
||||
{{ range $i, $_ := ($p.Scratch.Get "links") }} |
||||
{{ if eq $i 0 }} |
||||
<details><summary>Internal links to other Sandpoint pages ({{ len ($p.Scratch.Get "links") }}):</summary><ul> |
||||
{{ end }} |
||||
<li>{{ with $_.File }}<span class="sup">{{ substr .Dir 0 -1 }}⁄</span>{{ end }}<a href="{{ $_.RelPermalink }}">{{ $_.Title }}</a></li> |
||||
{{ end }} |
||||
</ul></details> |
||||
{{ end }} |
||||
|
||||
{{ $http_links := (slice) }} |
||||
{{ $library_links := (slice) }} |
||||
{{ $anchor_links := (slice) }} |
||||
{{ $other_links := (slice) }} |
||||
{{ $http_links := (slice) }} |
||||
{{ $library_links := (slice) }} |
||||
{{ $anchor_links := (slice) }} |
||||
{{ $other_links := (slice) }} |
||||
|
||||
{{ with ($p.Scratch.Get "urls") }} |
||||
{{- $c_prefix := $p.Site.Params.sandpointsCatalogPrefix | default "/library/" -}} |
||||
{{ range $i, $_ := ($p.Scratch.Get "urls") }} |
||||
{{ if strings.HasPrefix $_ "http" }} |
||||
{{ $http_links = $http_links | append $_ }} |
||||
{{ else if strings.HasPrefix $_ $c_prefix }} |
||||
{{ $library_links = $library_links | append $_ }} |
||||
{{ else}} |
||||
{{ $other_links = $other_links | append $_ }} |
||||
{{ end }} |
||||
{{ end }} |
||||
{{ end }} |
||||
{{ with ($p.Scratch.Get "urls") }} |
||||
{{- $c_prefix := $p.Site.Params.sandpointsCatalogPrefix | default "/library/" -}} |
||||
{{ range $i, $_ := ($p.Scratch.Get "urls") }} |
||||
{{ if strings.HasPrefix $_ "http" }} |
||||
{{ $http_links = $http_links | append $_ }} |
||||
{{ else if strings.HasPrefix $_ $c_prefix }} |
||||
{{ $library_links = $library_links | append $_ }} |
||||
{{ else}} |
||||
{{ $other_links = $other_links | append $_ }} |
||||
{{ end }} |
||||
{{ end }} |
||||
{{ end }} |
||||
|
||||
{{ with $http_links }} |
||||
{{ range $i, $_ := $http_links }} |
||||
{{ if eq $i 0 }} |
||||
<details><summary>Outgoing links to other pages on Internet ({{ len $http_links }}):</summary><ul> |
||||
{{ end }} |
||||
<li><span class="sup">www⁄</span><a href="{{ $_ }}" target="_blank">{{ $_ }}</a></li> |
||||
{{ end }} |
||||
</ul></details> |
||||
{{ end }} |
||||
{{ with $http_links }} |
||||
{{ range $i, $_ := $http_links }} |
||||
{{ if eq $i 0 }} |
||||
<details><summary>Outgoing links to other pages on Internet ({{ len $http_links }}):</summary><ul> |
||||
{{ end }} |
||||
<li><span class="sup">www⁄</span><a href="{{ $_ }}" target="_blank">{{ $_ }}</a></li> |
||||
{{ end }} |
||||
</ul></details> |
||||
{{ end }} |
||||
|
||||
{{ with $library_links }} |
||||
{{ range $i, $_ := $library_links }} |
||||
{{ if eq $i 0 }} |
||||
<details><summary>Links to Sandpoint's library ({{ len $library_links }}):</summary><ul> |
||||
{{ end }} |
||||
<li><span class="sup">lib⁄</span><a href="{{ $_ }}" target="_blank">{{ $_ }}</a></li> |
||||
{{ end }} |
||||
</ul></details> |
||||
{{ end }} |
||||
{{ with $library_links }} |
||||
{{ range $i, $_ := $library_links }} |
||||
{{ if eq $i 0 }} |
||||
<details><summary>Links to Sandpoint's library ({{ len $library_links }}):</summary><ul> |
||||
{{ end }} |
||||
<li><span class="sup">lib⁄</span><a href="{{ $_ }}" target="_blank">{{ $_ }}</a></li> |
||||
{{ end }} |
||||
</ul></details> |
||||
{{ end }} |
||||
|
||||
{{ with ($p.Scratch.Get "bibs") }} |
||||
{{ range $i, $_ := ($p.Scratch.Get "bibs") }} |
||||