From 9d058441f06f117fff22c22001771f379e1cdfeb Mon Sep 17 00:00:00 2001 From: Marcell Mars Date: Mon, 14 Dec 2020 03:50:12 +0100 Subject: [PATCH] ADD_ANNEX or anything else not in triad hierarchy --- .../Drawwell/SandpointsTheme/layouts/partials/header.html | 6 ++++++ _vendor/modules.txt | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/partials/header.html b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/partials/header.html index c45676e..4eb37a3 100644 --- a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/partials/header.html +++ b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/partials/header.html @@ -1,5 +1,10 @@ {{ $s := partialCached "scratch.html" . }} +{{ $currentDir := "" }} +{{ with .File }} + {{ $currentDir = .Dir }} +{{ end }} + {{ $currentFile := (printf "/%s" .File) }} {{ $scratch := $s.Get $currentFile }} @@ -27,6 +32,7 @@ {{ with $scratch.core }}ADD_{{ index . 0 | upper }}{{ end }} {{ with $scratch.mantle }}ADD_{{ index . 0 | upper }}{{ end }} {{ with $scratch.crust }}ADD_{{ index . 0 | upper }}{{ end }} + {{ if not $scratch.core }}ADD_{{ substr $currentDir 0 -1 | upper }}{{ end }} PUBLISH ? diff --git a/_vendor/modules.txt b/_vendor/modules.txt index 97b5cc6..ec8dd5f 100644 --- a/_vendor/modules.txt +++ b/_vendor/modules.txt @@ -1 +1 @@ -# git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20201214021218-2065efa34a44 +# git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20201214024649-d07052efd534