Clicking search results links to localhost. #1767
Dave-Davidson
started this conversation in
General
Replies: 1 comment
-
https://github.com/adityatelange/hugo-PaperMod/wiki/Features#search-page Add the following to site config, config.yml: outputs: Have you configured this code? It should be helpful.🫣 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm brand new to Hugo and PaperMod. Loving the theme. It's been a bit of a headache. I thought I had everything buttoned down and hosted on cloudflare pages. Until I though I would give search a go. I have the baseURL set and from what I can tell the whole site works fine. Even the search results show on the search page. It's just when clicking a result it tries to fetch from localhost. (
My Site
baseURL set
Contents of the search.md
Contents of the hugo.yaml
I'm sure this is something simple but I just can't pin it down.
Any ideas would be greatly appreciated. Thanks.
EDIT: So, chatting to ChatGPT about this issue. I think I've kind of fixed it. Unfortunately I don't think I could fix it consistently. 1st I changed permalinks to relpermalinks in the index.js file I believe. That didn't work. Then I was advised to change multiple things in the hugo.yaml. Non worked. Then I can't remember what file it was in but I changed some item.permalink to item.url. Boom everything seemed to work then. Unfortunately I fear I've done more harm to the code and maybe broke other functionality. So I'm now going to start again.
Beta Was this translation helpful? Give feedback.
All reactions