diff --git a/customizations/RaceCriticalTheories/layouts/partials/header.html b/customizations/RaceCriticalTheories/layouts/partials/header.html new file mode 100644 index 0000000..38c7689 --- /dev/null +++ b/customizations/RaceCriticalTheories/layouts/partials/header.html @@ -0,0 +1,96 @@ +{{ $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 -}} +
+ EDIT_THIS + ADD_{{ with $scratch.core }}{{ index . 0 | upper }}{{ end }} + ADD_{{ with $scratch.mantle }}{{ index . 0 | upper }}{{ end }} + ADD_{{ with $scratch.crust }}{{ index . 0 | upper }}{{ end }} + PUBLISH + ? +
+{{ end }} +

*****************************************************

+
+ + + + +