From 9b5f3fad7068298265dbbc8a65077f7917a090a5 Mon Sep 17 00:00:00 2001 From: aethrvmn Date: Sun, 21 Sep 2025 00:27:35 +0200 Subject: updated hugo-book theme --- themes/hugo-book/layouts/shortcodes/button.html | 12 ------------ themes/hugo-book/layouts/shortcodes/columns.html | 9 --------- themes/hugo-book/layouts/shortcodes/details.html | 7 ------- themes/hugo-book/layouts/shortcodes/hint.html | 3 --- themes/hugo-book/layouts/shortcodes/html.html | 1 - themes/hugo-book/layouts/shortcodes/i18n.html | 2 -- themes/hugo-book/layouts/shortcodes/katex.html | 13 ------------- themes/hugo-book/layouts/shortcodes/mermaid.html | 12 ------------ themes/hugo-book/layouts/shortcodes/section.html | 13 ------------- themes/hugo-book/layouts/shortcodes/tab.html | 9 --------- themes/hugo-book/layouts/shortcodes/tabs.html | 3 --- 11 files changed, 84 deletions(-) delete mode 100644 themes/hugo-book/layouts/shortcodes/button.html delete mode 100644 themes/hugo-book/layouts/shortcodes/columns.html delete mode 100644 themes/hugo-book/layouts/shortcodes/details.html delete mode 100644 themes/hugo-book/layouts/shortcodes/hint.html delete mode 100644 themes/hugo-book/layouts/shortcodes/html.html delete mode 100644 themes/hugo-book/layouts/shortcodes/i18n.html delete mode 100644 themes/hugo-book/layouts/shortcodes/katex.html delete mode 100644 themes/hugo-book/layouts/shortcodes/mermaid.html delete mode 100644 themes/hugo-book/layouts/shortcodes/section.html delete mode 100644 themes/hugo-book/layouts/shortcodes/tab.html delete mode 100644 themes/hugo-book/layouts/shortcodes/tabs.html (limited to 'themes/hugo-book/layouts/shortcodes') diff --git a/themes/hugo-book/layouts/shortcodes/button.html b/themes/hugo-book/layouts/shortcodes/button.html deleted file mode 100644 index efae3e0..0000000 --- a/themes/hugo-book/layouts/shortcodes/button.html +++ /dev/null @@ -1,12 +0,0 @@ -{{- $ref := "" }} -{{- $target := "" -}} -{{- with .Get "href" -}} - {{- $ref = . -}} - {{- $target = "_blank" -}} -{{- end -}} -{{- with .Get "relref" -}} - {{- $ref = relref $ . -}} -{{- end -}} - - {{- .InnerDeindent -}} - diff --git a/themes/hugo-book/layouts/shortcodes/columns.html b/themes/hugo-book/layouts/shortcodes/columns.html deleted file mode 100644 index bb01da9..0000000 --- a/themes/hugo-book/layouts/shortcodes/columns.html +++ /dev/null @@ -1,9 +0,0 @@ -{{- $ratio := (split (.Get "ratio") ":") -}} -
-{{ range $index, $content := split .InnerDeindent "<--->" }} - {{- $grow := default 1 (index $ratio $index) -}} -
- {{ $content | safeHTML }} -
-{{ end }} -
diff --git a/themes/hugo-book/layouts/shortcodes/details.html b/themes/hugo-book/layouts/shortcodes/details.html deleted file mode 100644 index a80209b..0000000 --- a/themes/hugo-book/layouts/shortcodes/details.html +++ /dev/null @@ -1,7 +0,0 @@ -
- {{- $summary := cond .IsNamedParams (.Get "title") (.Get 0) -}} - {{ $summary }} -
- {{ .InnerDeindent | safeHTML }} -
-
diff --git a/themes/hugo-book/layouts/shortcodes/hint.html b/themes/hugo-book/layouts/shortcodes/hint.html deleted file mode 100644 index 95e4f83..0000000 --- a/themes/hugo-book/layouts/shortcodes/hint.html +++ /dev/null @@ -1,3 +0,0 @@ -
- {{ .Inner | safeHTML }} -
diff --git a/themes/hugo-book/layouts/shortcodes/html.html b/themes/hugo-book/layouts/shortcodes/html.html deleted file mode 100644 index b447d45..0000000 --- a/themes/hugo-book/layouts/shortcodes/html.html +++ /dev/null @@ -1 +0,0 @@ -{{- .Inner | safeHTML -}} \ No newline at end of file diff --git a/themes/hugo-book/layouts/shortcodes/i18n.html b/themes/hugo-book/layouts/shortcodes/i18n.html deleted file mode 100644 index b65f70a..0000000 --- a/themes/hugo-book/layouts/shortcodes/i18n.html +++ /dev/null @@ -1,2 +0,0 @@ -{{- $content := .Get 0 -}} -{{- default $content (i18n $content) -}} \ No newline at end of file diff --git a/themes/hugo-book/layouts/shortcodes/katex.html b/themes/hugo-book/layouts/shortcodes/katex.html deleted file mode 100644 index 4eafc35..0000000 --- a/themes/hugo-book/layouts/shortcodes/katex.html +++ /dev/null @@ -1,13 +0,0 @@ -{{- if not (.Page.Scratch.Get "katex") -}} - - - - -{{- .Page.Scratch.Set "katex" true -}} -{{- end -}} - - - {{ with .Get "display" }}\[{{else}}\({{end}} - {{- .InnerDeindent -}} - {{ with .Get "display" }}\]{{else}}\){{end}} - diff --git a/themes/hugo-book/layouts/shortcodes/mermaid.html b/themes/hugo-book/layouts/shortcodes/mermaid.html deleted file mode 100644 index 07a3bfc..0000000 --- a/themes/hugo-book/layouts/shortcodes/mermaid.html +++ /dev/null @@ -1,12 +0,0 @@ -{{ if not (.Page.Scratch.Get "mermaid") }} - - -{{ with resources.Get "mermaid.json" }} - -{{ end }} -{{ .Page.Scratch.Set "mermaid" true }} -{{ end }} - -
-  {{- .Inner -}}
-
diff --git a/themes/hugo-book/layouts/shortcodes/section.html b/themes/hugo-book/layouts/shortcodes/section.html deleted file mode 100644 index b700ec4..0000000 --- a/themes/hugo-book/layouts/shortcodes/section.html +++ /dev/null @@ -1,13 +0,0 @@ -{{- warnf "Section shortcode is deprecated and will be removed" -}} -
-{{ range .Page.Pages }} -
- {{ partial "docs/title" . }} -
- {{ if (in $.Params "summary") -}} -
- {{ default .Summary .Description }} -
- {{ end -}} -{{ end }} -
diff --git a/themes/hugo-book/layouts/shortcodes/tab.html b/themes/hugo-book/layouts/shortcodes/tab.html deleted file mode 100644 index b5a753d..0000000 --- a/themes/hugo-book/layouts/shortcodes/tab.html +++ /dev/null @@ -1,9 +0,0 @@ -{{- $group := printf "tabs-%v" (default .Parent.Ordinal (.Parent.Get 0)) -}} -{{- $tab := printf "%s-%d" $group .Ordinal }} - - -
- {{- .Inner -}} -
diff --git a/themes/hugo-book/layouts/shortcodes/tabs.html b/themes/hugo-book/layouts/shortcodes/tabs.html deleted file mode 100644 index fecbbeb..0000000 --- a/themes/hugo-book/layouts/shortcodes/tabs.html +++ /dev/null @@ -1,3 +0,0 @@ -
-{{ .Inner }} -
-- cgit v1.2.3