From f6034fd71af850da363cceca8e248460f1d6c563 Mon Sep 17 00:00:00 2001 From: Marcell Mars Date: Mon, 11 Nov 2024 17:47:47 +0100 Subject: [PATCH] kiosk mode in rijeka --- .../Dotawo/layouts/_default/_markup/render-image.html | 4 ++-- .../Dotawo/layouts/_default/_markup/render-link.html | 2 +- customizations/Dotawo/layouts/partials/header.html | 2 +- layouts/_default/_markup/render-image.html | 4 ++-- layouts/_default/_markup/render-link.html | 2 +- layouts/partials/header.html | 2 +- layouts/urls/list.html | 8 ++++---- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/customizations/Dotawo/layouts/_default/_markup/render-image.html b/customizations/Dotawo/layouts/_default/_markup/render-image.html index fad8dcd..15d0d42 100644 --- a/customizations/Dotawo/layouts/_default/_markup/render-image.html +++ b/customizations/Dotawo/layouts/_default/_markup/render-image.html @@ -27,9 +27,9 @@ {{ 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 -}} + {{- delimit $b.authors ", " " & " -}}{{- with $b.pubdate -}}, {{- substr . 0 4}}{{- end -}}.bib⁄‘{{- $b.title -}}’. {{- with $b.publisher -}}{{- . -}}.{{- end -}} {{- else -}} - bib⁄{{- $text_link -}} + bib⁄{{- $text_link -}} {{- end -}} {{- else -}} {{- $text_link -}}⦚bib:{{- $destination -}} not found diff --git a/customizations/Dotawo/layouts/_default/_markup/render-link.html b/customizations/Dotawo/layouts/_default/_markup/render-link.html index b81c7a4..ea315fc 100644 --- a/customizations/Dotawo/layouts/_default/_markup/render-link.html +++ b/customizations/Dotawo/layouts/_default/_markup/render-link.html @@ -1 +1 @@ -{{- .Page.Scratch.Add "urls" (slice .Destination) -}}{{- $t := .Text -}}{{- $sup := "" -}}{{- if and (strings.HasPrefix .Destination "{") (.Destination | strings.Count "}") -}}{{- range first 1 (split .Destination "}") -}}{{- range $frmt := (split (substr . 1) ",") -}}{{- if eq $frmt "sc" -}}{{- $t -}}{{- end -}}{{- end -}}{{- end -}}{{- else }}{{- if strings.HasPrefix .Destination "http" -}}{{- $sup = "www" -}}{{- end -}}{{- if strings.HasPrefix .Destination "#" -}}{{- $sup = "§" -}}{{- end -}}{{- $sup -}}⁄{{ .Text | safeHTML }}{{- end -}} +{{- .Page.Scratch.Add "urls" (slice .Destination) -}}{{- $t := .Text -}}{{- $sup := "" -}}{{- if and (strings.HasPrefix .Destination "{") (.Destination | strings.Count "}") -}}{{- range first 1 (split .Destination "}") -}}{{- range $frmt := (split (substr . 1) ",") -}}{{- if eq $frmt "sc" -}}{{- $t -}}{{- end -}}{{- end -}}{{- end -}}{{- else }}{{- if strings.HasPrefix .Destination "http" -}}{{- $sup = "www" -}}{{- end -}}{{- if strings.HasPrefix .Destination "#" -}}{{- $sup = "§" -}}{{- end -}}{{- $sup -}}⁄{{ .Text | safeHTML }}{{- end -}} diff --git a/customizations/Dotawo/layouts/partials/header.html b/customizations/Dotawo/layouts/partials/header.html index c88addd..4581621 100644 --- a/customizations/Dotawo/layouts/partials/header.html +++ b/customizations/Dotawo/layouts/partials/header.html @@ -49,7 +49,7 @@ {{ end }}
- +