diff --git a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/customizations/Dotawo/layouts/_default/_markup/render-image.html b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/customizations/Dotawo/layouts/_default/_markup/render-image.html index f7a390c..470524f 100644 --- a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/customizations/Dotawo/layouts/_default/_markup/render-image.html +++ b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/customizations/Dotawo/layouts/_default/_markup/render-image.html @@ -2,49 +2,49 @@ {{ $_ := newScratch }} {{- range $k, $v := .Page.Site.Data.sandpointsnamegraph -}} - {{ $_.Add "triads" $k }} + {{ $_.Add "triads" $k }} {{- end -}} {{- if strings.HasPrefix .Destination "bib:" -}} - {{- $destination := (substr .Destination 4) -}} - {{- $c_prefix := .Page.Site.Params.sandpointsCatalogPrefix | default "/library/" -}} - {{- if index $.Page.Site.Data.books.catalog $destination -}} - {{- $b := index $.Page.Site.Data.books.catalog $destination -}} - {{- $bibhref := printf "%sBROWSE_LIBRARY.html#/book/%s" (safeURL ($c_prefix)) $destination }} - {{ $bibtitle := "" }} - {{ with $b.title }} - {{- $bibtitle = printf "%s" $b.title }} - {{ end }} - {{ .Page.Scratch.Add "bibs" (slice (slice $bibhref $bibtitle)) }} - {{- if not $text_link -}} - {{- delimit $b.authors ", " " & " -}}{{- with $b.pubdate -}}, {{- substr . 0 4}}{{- end -}}.bib⁄‘{{- $b.title -}}’. {{- with $b.publisher -}}{{- . -}}.{{- end -}} + {{- $destination := (substr .Destination 4) -}} + {{- $c_prefix := .Page.Site.Params.sandpointsCatalogPrefix | default "/library/" -}} + {{- if index $.Page.Site.Data.books.catalog $destination -}} + {{- $b := index $.Page.Site.Data.books.catalog $destination -}} + {{- $bibhref := printf "%sBROWSE_LIBRARY.html#/book/%s" (safeURL ($c_prefix)) $destination }} + {{ $bibtitle := "" }} + {{ with $b.title }} + {{- $bibtitle = printf "%s" $b.title }} + {{ end }} + {{ .Page.Scratch.Add "bibs" (slice (slice $bibhref $bibtitle)) }} + {{- if not $text_link -}} + {{- delimit $b.authors ", " " & " -}}{{- with $b.pubdate -}}, {{- substr . 0 4}}{{- end -}}.bib⁄‘{{- $b.title -}}’. {{- with $b.publisher -}}{{- . -}}.{{- end -}} + {{- else -}} + bib⁄{{- $text_link -}} + {{- end -}} {{- else -}} - {{- $text_link -}} + {{- $text_link -}}⦚bib:{{- $destination -}} not found {{- end -}} - {{- else -}} - {{- $text_link -}}⦚bib:{{- $destination -}} not found - {{- end -}} {{- else if in ($_.Get "triads") (index (split .Destination ":") 0) -}} - {{- if $.Page.Site.GetPage (printf "/%s" (replace .Destination ":" "/")) -}} - {{- $session := $.Page.Site.GetPage (printf "/%s" (replace .Destination ":" "/")) -}} - {{ .Page.Scratch.Add "links" (slice $session) }} - {{- if not $text_link -}} - {{- index (split .Destination ":") 0 -}}⁄{{- $session.Title -}} + {{- if $.Page.Site.GetPage (printf "/%s" (replace .Destination ":" "/")) -}} + {{- $session := $.Page.Site.GetPage (printf "/%s" (replace .Destination ":" "/")) -}} + {{ .Page.Scratch.Add "links" (slice $session) }} + {{- if not $text_link -}} + {{- index (split .Destination ":") 0 -}}⁄{{- $session.Title -}} + {{- else -}} + {{- index (split .Destination ":") 0 -}}⁄{{- $text_link -}} + {{- end -}} {{- else -}} - {{- index (split .Destination ":") 0 -}}⁄{{- $text_link -}} + {{- $text_link -}}⦚{{- .Destination -}} not found {{- end -}} - {{- else -}} - {{- $text_link -}}⦚{{- .Destination -}} not found - {{- end -}} {{- else if strings.HasPrefix .Destination "audio:" -}} - {{- $a_destination := (substr .Destination 6) -}} - {{- if findRE "^.*static" $a_destination -}} - {{ .Text }} - {{- else -}} - {{ .Text }} - {{- end -}} + {{- $a_destination := (substr .Destination 6) -}} + {{- if findRE "^.*static" $a_destination -}} + {{ .Text }} + {{- else -}} + {{ .Text }} + {{- end -}} {{- else if findRE "^.*static" .Destination -}} - {{- .Text -}} + {{- .Text -}} {{- else -}} - {{- .Text -}} + {{- .Text -}} {{- end -}} diff --git a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/_default/_markup/render-image.html b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/_default/_markup/render-image.html index 509776f..96ebc30 100644 --- a/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/_default/_markup/render-image.html +++ b/_vendor/git.sandpoints.org/Drawwell/SandpointsTheme/layouts/_default/_markup/render-image.html @@ -19,7 +19,7 @@ {{- if not $text_link -}} {{- delimit $b.authors ", " " & " -}}{{- with $b.pubdate -}}, {{- substr . 0 4}}{{- end -}}.bib⁄‘{{- $b.title -}}’. {{- with $b.publisher -}}{{- . -}}.{{- end -}} {{- else -}} - {{- $text_link -}} + bib⁄{{- $text_link -}} {{- end -}} {{- else -}} {{- $text_link -}}⦚bib:{{- $destination -}} not found diff --git a/_vendor/modules.txt b/_vendor/modules.txt index a015068..d5b59a8 100644 --- a/_vendor/modules.txt +++ b/_vendor/modules.txt @@ -1 +1 @@ -# git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20201223121247-06021f5c7895 +# git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20201223183147-c5a01b70e1d4