gethugothemes / parsa-hugo

Parsa is a personal blog theme powered by Hugo. It also can be used for portfolio website.
https://gethugothemes.com/products/parsa/?utm_source=parsa_github&utm_medium=referral&utm_campaign=github_theme_about
MIT License
157 stars 321 forks source link

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

Closed Vickey-Wu closed 4 years ago

Vickey-Wu commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

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

Vickey-Wu commented 4 years ago

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!