summaryrefslogtreecommitdiff
path: root/themes/CodeIT/layouts/partials/plugin/style.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/partials/plugin/style.html
parent260b6803e78609e16ad3d59792f1681d9df0f1e4 (diff)
switch back to LoveIt, other theme is deprectated
Diffstat (limited to 'themes/CodeIT/layouts/partials/plugin/style.html')
-rw-r--r--themes/CodeIT/layouts/partials/plugin/style.html31
1 files changed, 0 insertions, 31 deletions
diff --git a/themes/CodeIT/layouts/partials/plugin/style.html b/themes/CodeIT/layouts/partials/plugin/style.html
deleted file mode 100644
index 9c9c989..0000000
--- a/themes/CodeIT/layouts/partials/plugin/style.html
+++ /dev/null
@@ -1,31 +0,0 @@
-{{- if strings.HasPrefix .Source "<link" -}}
- {{- safeHTML .Source -}}
-{{- else -}}
- {{- $href := .Source -}}
- {{- $integrity := .Integrity -}}
- {{- $resource := 0 -}}
- {{- if $href | and (not (urls.Parse $href).Host) -}}
- {{- $resource = resources.Get $href -}}
- {{- end -}}
- {{- with .Content -}}
- {{- $resource = resources.FromString $.Path . -}}
- {{- end -}}
- {{- if $resource -}}
- {{- with .Template -}}
- {{- $resource = $resource | resources.ExecuteAsTemplate . $.Context -}}
- {{- end -}}
- {{- with .ToCSS -}}
- {{- $options := . | merge (dict "outputStyle" "compressed") -}}
- {{- $resource = $resource | toCSS $options -}}
- {{- end -}}
- {{- if .Minify -}}
- {{- $resource = $resource | minify -}}
- {{- end -}}
- {{- with .Fingerprint -}}
- {{- $resource = $resource | fingerprint . -}}
- {{- $integrity = $resource.Data.Integrity -}}
- {{- end -}}
- {{- $href = $resource.RelPermalink -}}
- {{- end -}}
- <link rel="stylesheet" href="{{ $href }}"{{ if .Crossorigin }} crossorigin="anonymous"{{ end }}{{ with $integrity }} integrity="{{ . }}"{{ end }}{{ with .Attr }} {{ . | safeHTMLAttr }}{{ end }}>
-{{- end -}}