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

local search功能无法使用,报错Cannot GET /search/ #138

Open
Holton1 opened this issue Apr 16, 2020 · 1 comment
Open

local search功能无法使用,报错Cannot GET /search/ #138

Holton1 opened this issue Apr 16, 2020 · 1 comment

Comments

@Holton1
Copy link

Holton1 commented Apr 16, 2020

I certify that I have first consulted (check with "x")

我确认我已经查看了 (选择时请使用 "x" 取代方括号中的空格)

我在站点_config.yml中添加了:
suka_theme:
search:
enable: true
path: search.xml
field: post # Page | Post | All. Default post
prism:
enable: true
line_number: true
theme: default
并做了hexo clean, hexo g
但是search功能不能使用。在网页点击search,会报错Cannot GET /search/

@matty12138
Copy link

matty12138 commented Jan 26, 2022

需要单独写一个用于搜索的独立页面(suka文档的“独立页面”那里有讲怎么做),比如search.md,放到source文件里的任意位置,然后把搜索功能的link指search.md向它所在的目录。
欢迎访问我的网站wuhang.xyz交流哦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants