Skip to content
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

Closed
1an8r0wn opened this issue Nov 16, 2022 · 2 comments · Fixed by #551
Closed

[FEATURE] add Google CSE support #244

1an8r0wn opened this issue Nov 16, 2022 · 2 comments · Fixed by #551
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@1an8r0wn
Copy link

Describe the feature you want 描述你的功能需求

希望能够添加 Google CSE 搜索支持。

Useful reference 有价值的参考

No response

@1an8r0wn 1an8r0wn added the enhancement New feature or request label Nov 16, 2022
@Lruihao Lruihao changed the title [FEATURE] Some feature [FEATURE] add Google CSE support Nov 16, 2022
@Lruihao
Copy link
Member

Lruihao commented Nov 26, 2024

类似的产品还有 Bing CSE。

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 Lruihao self-assigned this Nov 26, 2024
@Lruihao Lruihao added this to the v0.3.x milestone Nov 26, 2024
@Lruihao Lruihao changed the title [FEATURE] add Google CSE support [FEATURE] add CSE support Nov 26, 2024
@Lruihao Lruihao changed the title [FEATURE] add CSE support [FEATURE] add Google CSE support Nov 26, 2024
@Lruihao Lruihao linked a pull request Nov 27, 2024 that will close this issue
@Lruihao Lruihao moved this from To do to Done in Roadmap of FixIt Nov 28, 2024
@Lruihao
Copy link
Member

Lruihao commented Nov 28, 2024

CSE 支持文档

@Lruihao Lruihao closed this as completed Nov 28, 2024
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
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants