diff --git a/customizations/RaceCriticalTheories/layouts/partials/header.html b/customizations/RaceCriticalTheories/layouts/partials/header.html
deleted file mode 100644
index 38c7689..0000000
--- a/customizations/RaceCriticalTheories/layouts/partials/header.html
+++ /dev/null
@@ -1,96 +0,0 @@
-{{ $s := partialCached "scratch.html" . }}
-
-{{ $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" }}
- {{- $giteaUrl := .Site.Params.sandpointsGiteaUrl -}}
-
{{ $p.Content }}
+ {{ range $printPage := $scratch.has_cildren }}
+
{{ partial "singlebody.html" $printPage }}
+
{{ $printPage.Content }}
+ {{ $printPageScratch := $s.Get (printf "/%s" $printPage.File) }}
+ {{ range $printPageKid := $printPageScratch.has_children }}
+
{{ partial "singlebody.html" $printPageKid }}
+
{{ $printPageKid.Content }}
+ {{ . }}
+ {{ end }}
+
+ {{ end }}
+{{- end -}}
diff --git a/layouts/shortcodes/gloss.html b/layouts/shortcodes/gloss.html
index 0d23469..b90c4c3 100644
--- a/layouts/shortcodes/gloss.html
+++ b/layouts/shortcodes/gloss.html
@@ -1,25 +1,25 @@
{{ $inn := .Inner | $.Page.RenderString }}
-
- {{- range $g := (split $inn "\n") -}}
- {{- if hasPrefix $g "{r}" -}}
-
- {{- substr $g 3 | htmlUnescape | safeHTML -}}
-
- {{- else if hasPrefix $g "{g}" -}}
-
- {{- range (split (substr $g 3) "|") -}}
- {{- with . -}}
-
- {{- range (split . "," ) -}}
-
{{- . | htmlUnescape | safeHTML -}}
- {{- end -}}
-
- {{- end -}}
- {{- end -}}
-
+
+ {{- range $g := (split $inn "\n") -}}
+ {{- if hasPrefix $g "{r}" -}}
+
+ {{- substr $g 3 | htmlUnescape | safeHTML -}}
+
+ {{- else if hasPrefix $g "{g}" -}}
+
+ {{- range (split (substr $g 3) "|") -}}
+ {{- with . -}}
+
+ {{- range (split . "," ) -}}
+
{{- . | htmlUnescape | safeHTML -}}
+ {{- end -}}
+
{{- end -}}
- {{- end -}}
-
-
{{ with .Get 0 }}{{ . }}{{ end}}
-
\ No newline at end of file
+ {{- end -}}
+
+ {{- end -}}
+ {{- end -}}
+
+
{{ with .Get 0 }}{{ . }}{{ end}}
+
diff --git a/layouts/shortcodes/soundcloud.html b/layouts/shortcodes/soundcloud.html
index 27a8229..a26db5b 100644
--- a/layouts/shortcodes/soundcloud.html
+++ b/layouts/shortcodes/soundcloud.html
@@ -1,10 +1,10 @@
{{ $id := index .Params 0 }}
{{ $type := index .Params 1 | default "track" }}
\ No newline at end of file
+ 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">
+
diff --git a/layouts/urls/baseof.html b/layouts/urls/baseof.html
index f47940f..85953ac 100644
--- a/layouts/urls/baseof.html
+++ b/layouts/urls/baseof.html
@@ -1,12 +1,12 @@
-
- {{- partialCached "head.html" . -}}
-
{{- .Title }} - {{ .Site.Title -}}
- {{- partialCached "sandpointjs.html" . .RelPermalink -}}
-
-
- {{ block "urls" . }}{{ end }}
- {{- partialCached "footer.html" . -}}
-
+
+ {{- partialCached "head.html" . -}}
+
{{- .Title }} - {{ .Site.Title -}}
+ {{- partialCached "sandpointjs.html" . .RelPermalink -}}
+
+
+ {{ block "urls" . }}{{ end }}
+ {{- partialCached "footer.html" . -}}
+
diff --git a/layouts/urls/list.html b/layouts/urls/list.html
index 1896278..2e1eb98 100644
--- a/layouts/urls/list.html
+++ b/layouts/urls/list.html
@@ -1,106 +1,106 @@
{{ define "urls" }}
-
Backlinks, outgoing URLs, bibliographic references and internal links:
- {{ $s := partialCached "scratch.html" . }}
+
Backlinks, outgoing URLs, bibliographic references and internal links:
+ {{ $s := partialCached "scratch.html" . }}
-
[toggle expand/collapse]
-
- {{ range $p := .Site.RegularPages }}
- {{ with or ($p.Scratch.Get "urls") ($p.Scratch.Get "bibs") ($p.Scratch.Get "links") ($p.Scratch.Get "backlinks" )}}
-
{{ with $p.File }}{{- substr .Dir 0 -1 -}}⁄{{ end }}{{ $p.Title }}
+ [toggle expand/collapse]
+
+ {{ range $p := .Site.RegularPages }}
+ {{ with or ($p.Scratch.Get "urls") ($p.Scratch.Get "bibs") ($p.Scratch.Get "links") ($p.Scratch.Get "backlinks" )}}
+ {{ with $p.File }}{{- substr .Dir 0 -1 -}}⁄{{ end }}{{ $p.Title }}
+
+ {{ $pPath := printf "/%s" $p.File }}
+ {{ with $ss := $s.Get $pPath }}
+ {{ with $ss.backlinks }}
+ {{ range $i, $_ := $ss.backlinks }}
+ {{ if eq $i 0 }}
+ Mentioned in other Sandpoints pages ({{ len $ss.backlinks }}):
+ {{ end }}
+ - {{ with $_.File }}{{ substr .Dir 0 -1 }}⁄{{ end }}{{ $_.Title }}
+ {{ end }}
+
+ {{ end }}
+ {{ end }}
+
+ {{ with ($p.Scratch.Get "links") }}
+ {{ range $i, $_ := ($p.Scratch.Get "links") }}
+ {{ if eq $i 0 }}
+ Internal links to other Sandpoint pages ({{ len ($p.Scratch.Get "links") }}):
+ {{ end }}
+ - {{ with $_.File }}{{ substr .Dir 0 -1 }}⁄{{ end }}{{ $_.Title }}
+ {{ end }}
+
+ {{ end }}
+
+ {{ $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 $http_links }}
+ {{ range $i, $_ := $http_links }}
+ {{ if eq $i 0 }}
+ Outgoing links to other pages on Internet ({{ len $http_links }}):
+ {{ end }}
+ - www⁄{{ $_ }}
+ {{ end }}
+
+ {{ end }}
+
+ {{ with $library_links }}
+ {{ range $i, $_ := $library_links }}
+ {{ if eq $i 0 }}
+ Links to Sandpoint's library ({{ len $library_links }}):
+ {{ end }}
+ - lib⁄{{ $_ }}
+ {{ end }}
+
+ {{ end }}
+
+ {{ with ($p.Scratch.Get "bibs") }}
+ {{ range $i, $_ := ($p.Scratch.Get "bibs") }}
+ {{ if eq $i 0 }}
+ Bibliographic references ({{ len ($p.Scratch.Get "bibs") }}):
+ {{ end }}
+
+ {{ with $other_links }}
+ {{ $formattingN := 0 }}
+ {{ $anchorN := 0 }}
+ {{ range $i, $_ := $other_links }}
+ {{ if eq $i 0 }}
+ Anchor, formatting and other links ({{ len $other_links }}):
+ {{ end }}
+ {{ if strings.HasPrefix $_ "#" }}
+ {{ $anchorN = add $anchorN 1 }}
+ {{ else if strings.HasPrefix $_ "{"}}
+ {{ $formattingN = add $formattingN 1 }}
+ {{ else }}
+ - other⁄{{ $_ }}
+ {{ end }}
+ {{ end }}
+ {{ with $formattingN }}- {{ $formattingN }} formatting links.
{{ end }}
+ {{ with $anchorN }}- {{ $anchorN }} anchor links.
{{ end }}
+
+ {{ end }}
+
+
- {{ $pPath := printf "/%s" $p.File }}
- {{ with $ss := $s.Get $pPath }}
- {{ with $ss.backlinks }}
- {{ range $i, $_ := $ss.backlinks }}
- {{ if eq $i 0 }}
- Mentioned in other Sandpoints pages ({{ len $ss.backlinks }}):
- {{ end }}
- - {{ with $_.File }}{{ substr .Dir 0 -1 }}⁄{{ end }}{{ $_.Title }}
- {{ end }}
-
{{ end }}
- {{ end }}
-
- {{ with ($p.Scratch.Get "links") }}
- {{ range $i, $_ := ($p.Scratch.Get "links") }}
- {{ if eq $i 0 }}
- Internal links to other Sandpoint pages ({{ len ($p.Scratch.Get "links") }}):
- {{ end }}
- - {{ with $_.File }}{{ substr .Dir 0 -1 }}⁄{{ end }}{{ $_.Title }}
- {{ end }}
-
- {{ end }}
-
- {{ $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 $http_links }}
- {{ range $i, $_ := $http_links }}
- {{ if eq $i 0 }}
- Outgoing links to other pages on Internet ({{ len $http_links }}):
- {{ end }}
- - www⁄{{ $_ }}
- {{ end }}
-
- {{ end }}
-
- {{ with $library_links }}
- {{ range $i, $_ := $library_links }}
- {{ if eq $i 0 }}
- Links to Sandpoint's library ({{ len $library_links }}):
- {{ end }}
- - lib⁄{{ $_ }}
- {{ end }}
-
- {{ end }}
-
- {{ with ($p.Scratch.Get "bibs") }}
- {{ range $i, $_ := ($p.Scratch.Get "bibs") }}
- {{ if eq $i 0 }}
- Bibliographic references ({{ len ($p.Scratch.Get "bibs") }}):
- {{ end }}
-
- {{ with $other_links }}
- {{ $formattingN := 0 }}
- {{ $anchorN := 0 }}
- {{ range $i, $_ := $other_links }}
- {{ if eq $i 0 }}
- Anchor, formatting and other links ({{ len $other_links }}):
- {{ end }}
- {{ if strings.HasPrefix $_ "#" }}
- {{ $anchorN = add $anchorN 1 }}
- {{ else if strings.HasPrefix $_ "{"}}
- {{ $formattingN = add $formattingN 1 }}
- {{ else }}
- - other⁄{{ $_ }}
- {{ end }}
- {{ end }}
- {{ with $formattingN }}- {{ $formattingN }} formatting links.
{{ end }}
- {{ with $anchorN }}- {{ $anchorN }} anchor links.
{{ end }}
-
- {{ end }}
-
-
-
{{ end }}
- {{ end }}
{{ end }}