I have problem about posts ( not updated ) with tags , featured, recents posts . Everything worked before after that i have this issue. There is no problem on local but when i deploy my website online the posts not updated as explained before
When i deploy on netlify it works, but i use my own server…( i use hugo command to deploy )
This is my repository : GitHub - NedjmaOrg/nedjma-v-7
Please help !
Your baseURL makes no sense. You should set it to the correct value. There are lots of posts about this issue here, so you’ll certainly find more detailed explanations.
P.S. Where did the baseURL = '/' come from? I see quite a few people on this forum using that, with endless problems. Is there some guide or themes that promotes this bad practive?
I’ve seen this in a few themes, and should log an issue against the theme whenever I see it, but that’s a bit of a rat hole. Because then I want to log an issue whenever I see:
Menu entries that specify url instead of pageRef for internal links
Fragile printf constructs instead of .Page.GetTerms
The .Site.BaseURL method used anywhere
Hardcoded URLs for assets without passing them through relURL and friends
Themes that will never work when serving sites from subdirectories
Site configuration files that are littered with Hugo’s default settings
Site configuration files that enable canonifyURLs or relativeURLs