Skip to content

Commit be0c41a

Browse files
authored
[docsy] Configure Google Custom Search Engine but leave it disabled (#92)
1 parent 594a6ab commit be0c41a

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

hugo.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ params:
8383
[Funding](/docs/project/funding/) |
8484
# from_year: 2024
8585
github_repo: &repo https://github.com/theupdateframework/theupdateframework.io
86-
gcs_engine_id: 011217106833237091527:la2vtv2emlw # CUSTOMIZE # FIXME get an ID for the starter?
86+
## 2024-10-05 Disabling search until we agree on a viable solution. For context
87+
## see https://github.com/theupdateframework/theupdateframework.io/pull/92
88+
# gcs_engine_id: 06ecafa260afd40f9 # Also see layouts/partials/hooks/head-end.html
8789
privacy_policy: https://www.linuxfoundation.org/legal/privacy-policy
8890
ui:
8991
navbar_logo: true

layouts/partials/hooks/head-end.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<script type="text/javascript" async src="https://cse.google.com/cse.js?cx={{ .Site.Params.gcs_engine_id }}"></script>

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ to = "https://theupdateframework.github.io/specification/:splat"
1616
[[headers]]
1717
for = "/*"
1818
[headers.values]
19-
Content-Security-Policy = "default-src 'self' code.jquery.com fonts.googleapis.com fonts.gstatic.com use.fontawesome.com app.netlify.com netlify-cdp-loader.netlify.app youtube.com; frame-src youtube.com www.youtube.com"
19+
Content-Security-Policy = "default-src 'self' code.jquery.com fonts.googleapis.com fonts.gstatic.com cse.google.com www.google.com use.fontawesome.com app.netlify.com netlify-cdp-loader.netlify.app youtube.com; frame-src youtube.com www.youtube.com"
2020
X-Frame-Options = "deny"
2121
X-Content-Type-Options = "nosniff"
2222
Referrer-Policy = "no-referrer-when-downgrade"

0 commit comments

Comments
 (0)