mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-18 12:09:29 -07:00
feat: use absolute URLs for assets
closes #473, closes #476 Signed-off-by: Sped0n <hi@sped0n.com>
This commit is contained in:
@@ -37,26 +37,26 @@
|
||||
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 }}
|
||||
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 }}
|
||||
href="{{- $href -}}"
|
||||
{{- if .Crossorigin -}}crossorigin="anonymous"{{- end -}}{{- with $integrity -}}
|
||||
integrity="{{- . -}}"
|
||||
{{- end -}}{{- with .Attr -}}{{- . | safeHTMLAttr -}}{{- end -}}
|
||||
/></noscript>
|
||||
{{- else -}}
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="{{ $href }}"
|
||||
{{ if .Crossorigin }}crossorigin="anonymous"{{ end }}{{ with $integrity }}
|
||||
integrity="{{ . }}"
|
||||
{{ end }}{{ with .Attr }}{{ . | safeHTMLAttr }}{{ end }}
|
||||
href="{{- $href -}}"
|
||||
{{- if .Crossorigin -}}crossorigin="anonymous"{{- end -}}{{- with $integrity -}}
|
||||
integrity="{{- . -}}"
|
||||
{{- end -}}{{- with .Attr -}}{{- . | safeHTMLAttr -}}{{- end -}}
|
||||
/>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user