Skip to content

[docsy] Configure Google Custom Search Engine but leave it disabled #92

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ params:
[Funding](/docs/project/funding/) |
# from_year: 2024
github_repo: &repo https://github.com/theupdateframework/theupdateframework.io
gcs_engine_id: 011217106833237091527:la2vtv2emlw # CUSTOMIZE # FIXME get an ID for the starter?
## 2024-10-05 Disabling search until we agree on a viable solution. For context
## see https://github.com/theupdateframework/theupdateframework.io/pull/92
# gcs_engine_id: 06ecafa260afd40f9 # Also see layouts/partials/hooks/head-end.html
privacy_policy: https://www.linuxfoundation.org/legal/privacy-policy
ui:
navbar_logo: true
Expand Down
1 change: 1 addition & 0 deletions layouts/partials/hooks/head-end.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<script type="text/javascript" async src="https://cse.google.com/cse.js?cx={{ .Site.Params.gcs_engine_id }}"></script>
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ to = "https://theupdateframework.github.io/specification/:splat"
[[headers]]
for = "/*"
[headers.values]
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"
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"
X-Frame-Options = "deny"
X-Content-Type-Options = "nosniff"
Referrer-Policy = "no-referrer-when-downgrade"
Expand Down