-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
[FEATURE] add Google CSE support #244
Comments
Google Programmable Search Engine (formerly Google CSE) {{- /* Google CSE */ -}}
<script async src="https://cse.google.com/cse.js?cx=2428986c19079433c"></script>
{{/*
Two pages
两页:按钮和搜索框会在一个页面。点击后跳到搜索页面(搜索页面路径通过参数配置)
点击搜索图标,显示搜索框,输入关键词,点击搜索按钮,跳转到新页面显示搜索结果
*/}}
{{/* 只有搜索页要引入 JS */}}
{{/* gcse-searchbox-only 逻辑由主题实现 */}}
<div class="gcse-searchbox-only"></div>
{{/*
Two columns
两列:搜索框和结果分开(适合自定义弹窗)
点击搜索图标,打开弹出框,显示搜索框和结果
*/}}
{{/* 每一页都要引入 JS */}}
<div class="gcse-searchbox"></div>
<div class="gcse-searchresults"></div> |
Lruihao
added a commit
to hugo-fixit/docs
that referenced
this issue
Dec 2, 2024
* dev: Docs: 增加菜单自定义块 Docs: 更新 CSE 教程 Docs: 增加 Google CSE 支持,并增加文档和教程 (hugo-fixit/FixIt#244)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the feature you want 描述你的功能需求
希望能够添加 Google CSE 搜索支持。
Useful reference 有价值的参考
No response
The text was updated successfully, but these errors were encountered: