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

Why I can't use search to search my post content? #15

Closed
Vickey-Wu opened this issue Apr 16, 2020 · 4 comments
Closed

Why I can't use search to search my post content? #15

Vickey-Wu opened this issue Apr 16, 2020 · 4 comments

Comments

@Vickey-Wu
Copy link

Vickey-Wu commented Apr 16, 2020

Why I can't use search to search my post content? I search anything it always return "No matches found", Is there some rule that I must obey in markdown file?

@Vickey-Wu
Copy link
Author

Why I can't use search to search my post content? I search anything it always return "No matches found", Is there some rule that I must obey in markdown file?

I can search now when I move my markdown file to content/ directory not my content/posts/ directory, I don't know why it can search part of Chinese words but not all.

@somratpro
Copy link
Contributor

hey there. parsa is a blog template, that's why we create the blogs direct content directory. so it can only search when it has no subfolder in content.

@jDeppen
Copy link

jDeppen commented Apr 27, 2020

To search for subfolder content, I changed this line
{{- range .Pages -}}
to
{{- range .Site.RegularPages -}}

/themes/parsa-hugo/layouts/_default/index.json

@Vickey-Wu
Copy link
Author

To search for subfolder content, I changed this line
{{- range .Pages -}}
to
{{- range .Site.RegularPages -}}

/themes/parsa-hugo/layouts/_default/index.json

It is awsome! Thanks a lot!

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

3 participants