Skip to content

Commit

Permalink
[docsy] Configure Google Custom Search Engine but leave it disabled (#92
Browse files Browse the repository at this point in the history
)
  • Loading branch information
chalin authored Oct 5, 2024
1 parent 594a6ab commit be0c41a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
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

0 comments on commit be0c41a

Please sign in to comment.