mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-22 14:09:30 -07:00
refactor(plugin/style.html): improve code formatting and indentation for better readability
This commit is contained in:
@@ -28,9 +28,31 @@
|
|||||||
{{- $href = $resource.RelPermalink -}}
|
{{- $href = $resource.RelPermalink -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if .Defer -}}
|
{{- if .Defer -}}
|
||||||
<link rel="preload" as="style" onload="this.onload=null;this.rel='stylesheet'" href="{{ $href }}"{{ if .Crossorigin }} crossorigin="anonymous"{{ end }}{{ with $integrity }} integrity="{{ . }}"{{ end }}{{ with .Attr }} {{ . | safeHTMLAttr }}{{ end }}>
|
<link
|
||||||
<noscript><link rel="stylesheet" href="{{ $href }}"{{ if .Crossorigin }} crossorigin="anonymous"{{ end }}{{ with $integrity }} integrity="{{ . }}"{{ end }}{{ with .Attr }} {{ . | safeHTMLAttr }}{{ end }}></noscript>
|
rel="preload"
|
||||||
|
as="style"
|
||||||
|
onload="this.onload=null;this.rel='stylesheet'"
|
||||||
|
href="{{ $href }}"
|
||||||
|
{{ if .Crossorigin }}crossorigin="anonymous"{{ end }}{{ with $integrity }}
|
||||||
|
integrity="{{ . }}"
|
||||||
|
{{ end }}{{ with .Attr }}{{ . | safeHTMLAttr }}{{ end }}
|
||||||
|
/>
|
||||||
|
<noscript
|
||||||
|
><link
|
||||||
|
rel="stylesheet"
|
||||||
|
href="{{ $href }}"
|
||||||
|
{{ if .Crossorigin }}crossorigin="anonymous"{{ end }}{{ with $integrity }}
|
||||||
|
integrity="{{ . }}"
|
||||||
|
{{ end }}{{ with .Attr }}{{ . | safeHTMLAttr }}{{ end }}
|
||||||
|
/></noscript>
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
<link rel="stylesheet" href="{{ $href }}"{{ if .Crossorigin }} crossorigin="anonymous"{{ end }}{{ with $integrity }} integrity="{{ . }}"{{ end }}{{ with .Attr }} {{ . | safeHTMLAttr }}{{ end }}>
|
<link
|
||||||
|
rel="stylesheet"
|
||||||
|
href="{{ $href }}"
|
||||||
|
{{ if .Crossorigin }}crossorigin="anonymous"{{ end }}{{ with $integrity }}
|
||||||
|
integrity="{{ . }}"
|
||||||
|
{{ end }}{{ with .Attr }}{{ . | safeHTMLAttr }}{{ end }}
|
||||||
|
/>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user