canonifyURLs = true
.Site.BaseURL |
https://hugo-sandbox.netlify.com/subdir-canonify-true/ | |
$myRefRel |
images/gopher.png | |
$myRefRel |
images/gopher.png | ![]() |
relURL $myRefRel |
/images/gopher.png | ![]() |
absURL $myRefRel |
https://hugo-sandbox.netlify.com/subdir-canonify-true/images/gopher.png | ![]() |
$myRefAbs |
/images/gopher.png | |
$myRefAbs |
/images/gopher.png | ![]() |
relURL $myRefAbs |
/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
.
canonifyURLs
set to false
single.html
layout
Content of Post 1.