I want relative URLs so a preview site’s links work. I set the configuration here:
But it doesn’t appear to work. What am I missing?
git clone git@github.com:kaihendry/netlify-cms-testing.git
cd netlify-cms-testing/
hugo
grep blog public/index.html
I want relative URLs so a preview site’s links work. I set the configuration here:
But it doesn’t appear to work. What am I missing?
git clone git@github.com:kaihendry/netlify-cms-testing.git
cd netlify-cms-testing/
hugo
grep blog public/index.html
Use .RelPermalink here: https://github.com/kaihendry/netlify-cms-testing/blob/master/layouts/index.html#L15
So what’s the point of relativeURLs: true … rather confusing.
Setting
relativeURLstotruein your site configuration will cause Hugo to rewrite all relative URLs to be relative to the current content.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.