summaryrefslogtreecommitdiff
path: root/themes/CodeIT/layouts/shortcodes/version.html
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2022-08-14 19:01:21 +0200
committerChristoph Cullmann <cullmann@kde.org>2022-08-14 19:01:21 +0200
commit51fb029ca27d67d7cd67352cdede45e5b25868f7 (patch)
tree6d8e34b2abdc757310ffe11189e926d017417bae /themes/CodeIT/layouts/shortcodes/version.html
parent260b6803e78609e16ad3d59792f1681d9df0f1e4 (diff)
switch back to LoveIt, other theme is deprectated
Diffstat (limited to 'themes/CodeIT/layouts/shortcodes/version.html')
-rw-r--r--themes/CodeIT/layouts/shortcodes/version.html13
1 files changed, 0 insertions, 13 deletions
diff --git a/themes/CodeIT/layouts/shortcodes/version.html b/themes/CodeIT/layouts/shortcodes/version.html
deleted file mode 100644
index 186f275..0000000
--- a/themes/CodeIT/layouts/shortcodes/version.html
+++ /dev/null
@@ -1,13 +0,0 @@
-{{- $version := .Get 0 -}}
-{{- $url := printf "https://github.com/sunt-programator/CodeIT/releases/tag/v%v" $version -}}
-{{- $type := .Get 1 | default "new" | lower -}}
-{{- $label := T $type -}}
-{{- $color := cond (eq $type "changed") "ff9101" "00b1ff" | cond (eq $type "deleted") "ff5252" -}}
-{{- $pathTemplate := cond .Site.IsMultiLingual (printf "svg/version/%%v-%%v.%v.svg" .Page.Language.Lang) "svg/version/%v-%v.svg" -}}
-{{- $path := printf $pathTemplate $version $type -}}
-{{- $resource := resources.Get "svg/version.template.svg" -}}
-{{- $resource = $resource | resources.ExecuteAsTemplate $path (dict "version" $version "label" $label "color" $color) | minify -}}
-{{- $alt := printf "CodeIT %v | %v" $label $version -}}
-<a href="{{ $url }}" rel="noopener noreferrer" target="_blank">
- {{- dict "Src" $resource.RelPermalink "Alt" $alt "Class" "version" | partial "plugin/image.html" -}}
-</a> \ No newline at end of file