Post 1 permalink

canonifyURLs = false

Discussion
.Site.BaseURL https://hugo-sandbox.netlify.com/subdir-canonify-false/
 
$myRefRel images/gopher.png
$myRefRel images/gopher.png
relURL $myRefRel /subdir-canonify-false/images/gopher.png
absURL $myRefRel https://hugo-sandbox.netlify.com/subdir-canonify-false/images/gopher.png
 
$myRefAbs /images/gopher.png
$myRefAbs /images/gopher.png
relURL $myRefAbs /subdir-canonify-false/images/gopher.png
absURL $myRefAbs https://hugo-sandbox.netlify.com/images/gopher.png

For testing locally, you can run hugo server -b localhost/foo/ --navigateToChanged.


Home | Hugo Sandbox | Subdir baseURL test site with canonifyURLs set to true

single.html layout

Content of Post 1.