From 0c7cb4486a89ec6fe9680e6569ef41d4b82d557d Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Thu, 18 Feb 2021 22:21:36 +0100 Subject: use maintained theme --- themes/LoveIt/layouts/partials/function/checkbox.html | 9 --------- themes/LoveIt/layouts/partials/function/content.html | 19 ------------------- themes/LoveIt/layouts/partials/function/escape.html | 5 ----- .../LoveIt/layouts/partials/function/fontawesome.html | 14 -------------- themes/LoveIt/layouts/partials/function/fraction.html | 5 ----- themes/LoveIt/layouts/partials/function/id.html | 8 -------- themes/LoveIt/layouts/partials/function/path.html | 3 --- themes/LoveIt/layouts/partials/function/resource.html | 16 ---------------- themes/LoveIt/layouts/partials/function/ruby.html | 5 ----- 9 files changed, 84 deletions(-) delete mode 100644 themes/LoveIt/layouts/partials/function/checkbox.html delete mode 100644 themes/LoveIt/layouts/partials/function/content.html delete mode 100644 themes/LoveIt/layouts/partials/function/escape.html delete mode 100644 themes/LoveIt/layouts/partials/function/fontawesome.html delete mode 100644 themes/LoveIt/layouts/partials/function/fraction.html delete mode 100644 themes/LoveIt/layouts/partials/function/id.html delete mode 100644 themes/LoveIt/layouts/partials/function/path.html delete mode 100644 themes/LoveIt/layouts/partials/function/resource.html delete mode 100644 themes/LoveIt/layouts/partials/function/ruby.html (limited to 'themes/LoveIt/layouts/partials/function') diff --git a/themes/LoveIt/layouts/partials/function/checkbox.html b/themes/LoveIt/layouts/partials/function/checkbox.html deleted file mode 100644 index 2283592..0000000 --- a/themes/LoveIt/layouts/partials/function/checkbox.html +++ /dev/null @@ -1,9 +0,0 @@ -{{- /* Checkbox unchecked */ -}} -{{- $old := `` -}} -{{- $new := `` -}} -{{- $content := replace . $old $new -}} - -{{- /* Checkbox checked */ -}} -{{- $old = `` -}} -{{- $new = `` -}} -{{- return replace $content $old $new -}} diff --git a/themes/LoveIt/layouts/partials/function/content.html b/themes/LoveIt/layouts/partials/function/content.html deleted file mode 100644 index f1d7ce8..0000000 --- a/themes/LoveIt/layouts/partials/function/content.html +++ /dev/null @@ -1,19 +0,0 @@ -{{- $content := .Content -}} - -{{- if .Ruby -}} - {{- $content = partial "function/ruby.html" $content -}} -{{- end -}} - -{{- if .Fraction -}} - {{- $content = partial "function/fraction.html" $content -}} -{{- end -}} - -{{- if .Fontawesome -}} - {{- $content = partial "function/fontawesome.html" $content -}} -{{- end -}} - -{{- $content = partial "function/checkbox.html" $content -}} - -{{- $content = partial "function/escape.html" $content -}} - -{{- return $content -}} diff --git a/themes/LoveIt/layouts/partials/function/escape.html b/themes/LoveIt/layouts/partials/function/escape.html deleted file mode 100644 index 1ff794f..0000000 --- a/themes/LoveIt/layouts/partials/function/escape.html +++ /dev/null @@ -1,5 +0,0 @@ -{{- /* Escape character */ -}} -{{- /* {?X} -> X */ -}} -{{- $REin := `\{\?(.)\}` -}} -{{- $REout := `$1` -}} -{{- return replaceRE $REin $REout . -}} diff --git a/themes/LoveIt/layouts/partials/function/fontawesome.html b/themes/LoveIt/layouts/partials/function/fontawesome.html deleted file mode 100644 index 9d64c3d..0000000 --- a/themes/LoveIt/layouts/partials/function/fontawesome.html +++ /dev/null @@ -1,14 +0,0 @@ -{{- /* Font Awesome */ -}} -{{- /* :(far fa-circle): -> */ -}} - -{{- $REin := ` (:\([\w- ]+?\):)` -}} -{{- $REout := ` $1` -}} -{{- $content := replaceRE $REin $REout . -}} - -{{- $REin = `(:\([\w- ]+?\):) ` -}} -{{- $REout = `$1 ` -}} -{{- $content = replaceRE $REin $REout . -}} - -{{- $REin = `:\(([\w- ]+?)\):` -}} -{{- $REout = `` -}} -{{- return replaceRE $REin $REout $content -}} diff --git a/themes/LoveIt/layouts/partials/function/fraction.html b/themes/LoveIt/layouts/partials/function/fraction.html deleted file mode 100644 index 9aa85d0..0000000 --- a/themes/LoveIt/layouts/partials/function/fraction.html +++ /dev/null @@ -1,5 +0,0 @@ -{{- /* Fraction */ -}} -{{- /* [A]/[B] -> A/B */ -}} -{{- $REin := `\[(.+?)\]/\[(.+?)\]` -}} -{{- $REout := `$1/$2` -}} -{{- return replaceRE $REin $REout . -}} diff --git a/themes/LoveIt/layouts/partials/function/id.html b/themes/LoveIt/layouts/partials/function/id.html deleted file mode 100644 index e84ef9c..0000000 --- a/themes/LoveIt/layouts/partials/function/id.html +++ /dev/null @@ -1,8 +0,0 @@ -{{- /* ID */ -}} -{{- $count := (.Scratch.Get "this").count | default 1 -}} -{{- $id := printf "id-%d" $count -}} -{{- $count | add 1 | .Scratch.SetInMap "this" "count" -}} -{{- with .Content -}} - {{- dict $id . | dict "data" | dict "config" | merge ($.Scratch.Get "this") | $.Scratch.Set "this" -}} -{{- end -}} -{{- return $id -}} diff --git a/themes/LoveIt/layouts/partials/function/path.html b/themes/LoveIt/layouts/partials/function/path.html deleted file mode 100644 index ece426f..0000000 --- a/themes/LoveIt/layouts/partials/function/path.html +++ /dev/null @@ -1,3 +0,0 @@ -{{- /* https://discourse.gohugo.io/t/how-decode-urls-in-hugo/7549/4 */ -}} -{{- $URL := . | urlize | urls.Parse -}} -{{- return $URL.Path -}} diff --git a/themes/LoveIt/layouts/partials/function/resource.html b/themes/LoveIt/layouts/partials/function/resource.html deleted file mode 100644 index 2febef3..0000000 --- a/themes/LoveIt/layouts/partials/function/resource.html +++ /dev/null @@ -1,16 +0,0 @@ -{{- $resource := 0 -}} -{{- $url := urls.Parse .Path -}} -{{- if not $url.Host | and $url.Path | and (strings.HasSuffix $url.Path "/" | not) -}} - {{- if .Resources -}} - {{- with .Resources.GetMatch $url.Path -}} - {{- $resource = . -}} - {{- end -}} - {{- end -}} - {{- if not $resource -}} - {{- with resources.Get $url.Path -}} - {{- $resource = . -}} - {{- end -}} - {{- end -}} -{{- end -}} - -{{- return $resource -}} diff --git a/themes/LoveIt/layouts/partials/function/ruby.html b/themes/LoveIt/layouts/partials/function/ruby.html deleted file mode 100644 index 49aa35b..0000000 --- a/themes/LoveIt/layouts/partials/function/ruby.html +++ /dev/null @@ -1,5 +0,0 @@ -{{- /* Ruby */ -}} -{{- /* [EN]^(English) -> ENEnglish */ -}} -{{- $REin := `\[(.+?)\]\^\((.+?)\)` -}} -{{- $REout := `$1$2` -}} -{{- return replaceRE $REin $REout . -}} -- cgit v1.2.3