diff options
author | Christoph Cullmann <cullmann@kde.org> | 2021-02-18 22:21:36 +0100 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2021-02-18 22:21:36 +0100 |
commit | 0c7cb4486a89ec6fe9680e6569ef41d4b82d557d (patch) | |
tree | 081941052bcab0caf69487b6bf5ab2df5deb3b7b /themes/LoveIt/layouts/partials/plugin/style.html | |
parent | 640572ecab69291d2c266de2011b795a861e7c21 (diff) |
use maintained theme
Diffstat (limited to 'themes/LoveIt/layouts/partials/plugin/style.html')
-rw-r--r-- | themes/LoveIt/layouts/partials/plugin/style.html | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/themes/LoveIt/layouts/partials/plugin/style.html b/themes/LoveIt/layouts/partials/plugin/style.html deleted file mode 100644 index 9c9c989..0000000 --- a/themes/LoveIt/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 -}} |