Open xavierraffin opened 3 years ago
Hello @xavierraffin
Sorry for the late reply, I didn't notice this issue. I visit your site and didn't recognize the theme. Also, I noticed that your search still not working. can you tell me which theme you are using?
Thank you for coming back to me @somratpro!
We use the theme from this current repo. See the theme.toml:
ame = "Liva Hugo"
license = "MIT"
licenselink = "https://github.com/themefisher/liva-hugo/blob/master/LICENSE"
description = "Hugo port of the Themefisher’s Liva Template"
homepage = "https://gethugothemes.com/shop/"
tags = ['landing-page', 'fast', 'light', 'white', 'modern', 'themefisher', 'hugo-theme', 'hugo-templates', 'bootstrap', 'blog', 'responsive', 'clean', 'simple', 'creative', 'contact-form', 'custom-themes', 'mobile', 'minimalistic', 'pages', 'resume', 'portfolio', 'google analytics', 'customizable', 'flexbox', 'presentation', 'product', 'theme', 'typography']
features = ['bootstrap','responsive']
min_version = "0.58.0"
[author]
name = "Themefisher"
homepage = "https://themefisher.com/"
We made some graphical customization from the original. But I don't know how the search is supposed to work, and was trying to get help here.
Hey @xavierraffin
I check our live demo, and the search is working fine. I think you messed up with search when you customized this theme. Probably you removed the search.md file from content folder. I want to let you know that, we give custom support, if you are interested, you can contact at mehedi@themefisher.com. thank you
@somratpro @tfsomrat I am facing the same issue. And I forked it from the original repo but still search doesn't work. How can I fix it? @xavierraffin how did you fix it?
@Ankit-Gupta18 it was a problem with Hugo Liva and our CDN, the path for search was not transmitted properly:
Here is the code change:
in blog/themes/liva/layouts/partials/header.html:
--- <form action="{{ .Site.BaseURL }}/search" class="h-100">
+++ <form action="{{ .Site.BaseURL }}search/" class="h-100">
@Ankit-Gupta18 it was a problem with Hugo Liva and our CDN, the path for search was not transmitted properly:
Here is the code change:
in blog/themes/liva/layouts/partials/header.html:
--- <form action="{{ .Site.BaseURL }}/search" class="h-100"> +++ <form action="{{ .Site.BaseURL }}search/" class="h-100">
Still this.. Any more change?
I just tried it and their search seems to work just fine.
I am running a blog with Liva and the search results page returns 404.
URL: https://visualping.io/blog/ Search result: https://visualping.io/blog/search?s=monitor
My config.toml:
Example search results (403 from S3 because the target file do not exist). It returns a 404 when running locally.
https://visualping.io/blog/search?s=monitor
Thank you very much for your help