Skip to content

Commit c76ae70

Browse files
committed
de-dent calls to script and style partials in layouts
1 parent c91d4e0 commit c76ae70

File tree

2 files changed

+18
-25
lines changed

2 files changed

+18
-25
lines changed

layouts/_default/baseof.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,35 @@
44
<head>
55
{{ block "head" . }}
66

7-
{{ partial "meta.html" . }}
7+
{{ partial "meta.html" . }}
88

9-
{{ partial "favicon.html" . }}
9+
{{ partial "favicon.html" . }}
1010

11-
{{ partial "styles.html" . }}
11+
{{ partial "styles.html" . }}
1212

13-
{{ if in .Params.doctypes "devportal" }}
14-
{{ partial "devportal/style.html" . }}
15-
{{ end }}
13+
{{ if in .Params.doctypes "devportal" }}
14+
{{ partial "devportal/style.html" . }}
15+
{{ end }}
1616

17-
{{ if fileExists "/layouts/partials/head_custom.html" }}
18-
{{ partial "head_custom.html" . }}
19-
{{ end }}
17+
{{ if fileExists "/layouts/partials/head_custom.html" }}
18+
{{ partial "head_custom.html" . }}
19+
{{ end }}
2020

21-
{{ if or ( not .Site.IsServer ) ( not ( in .Site.Params.buildtype "package" ) ) }}
21+
{{ if or ( not .Site.IsServer ) ( not ( in .Site.Params.buildtype "package" ) ) }}
2222

23-
{{ partial "trustarc.html" . }}
23+
{{ partial "trustarc.html" . }}
2424

25-
{{ partial "tealium-profile.html" . }}
25+
{{ partial "tealium-profile.html" . }}
2626

27-
{{ end }}
27+
{{ end }}
2828

2929
{{ end }}
3030

3131
</head>
3232

3333
<body>
3434
{{ if or ( not .Site.IsServer ) ( not ( in .Site.Params.buildtype "package" ) ) }}
35-
{{ partial "universal-tag.html" . }}
35+
{{ partial "universal-tag.html" . }}
3636
{{ end }}
3737

3838
<header>

layouts/partials/meta.html

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,10 @@
3838
{{ end }}
3939

4040

41-
{{/* set custom CSP to load styles and scripts with special handling for GTM scripts (requires unsafe-inline) and Dev Portal page(s) (requires 'unsafe-eval')
42-
https://code.jquery.com/
43-
https://cdn.jsdelivr.net/
44-
https://static.cloud.coveo.com
45-
https://kit.fontawesome.com/
46-
https://*.netlify.app
47-
https://gist.github.com
41+
{{/* set custom CSP to load styles and scripts with special handling for GTM scripts (requires unsafe-inline) and Dev Portal page(s) (requires 'unsafe-eval') */}}
42+
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'
43+
https://consent.trustarc.com/ https://mktg.tags.f5.com/basic/prod/utag.sync.js https://static.cloud.coveo.com/ https://*.f5.com/
44+
https://*.netlify.app https://gist.github.com
4845
https://tag.demandbase.com/pscSDsz4.min.js
4946
https://munchkin.brightfunnel.com/js/build/bf-munchkin.min.js
5047
https://www.googletagmanager.com/gtm.js
@@ -53,12 +50,8 @@
5350
https://www.google-analytics.com/plugins/ua/linkid.js
5451
https://cdn.bizible.com/scripts/bizible.js
5552
https://cdn.bizible.com/xdc.js
56-
https://consent.trustarc.com/
5753
https://f5networksglobalprod.122.2o7.net/
5854
https://f5networksnginxdocs.122.2o7.net/
59-
https://*.f5.com */}}
60-
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'
61-
https://consent.trustarc.com/ https://mktg.tags.f5.com/basic/prod/utag.sync.js https://static.cloud.coveo.com/ https://*.f5.com/
6255
{{ if in .Params.doctypes "devportal" }} 'unsafe-eval' {{end}};
6356
worker-src 'self' blob:">
6457
{{/* end */}}

0 commit comments

Comments
 (0)