Merge branch 'fix-config-baseurl' into 'master'
Fixes baseurl ## Why Blog posts urls aren't correct: Example, newest post url: https://pages.gitlab.io/hugo/hugo/posts/newest/ (`/hugo/` is repeating itself) Correct path: https://pages.gitlab.io/hugo/posts/newest/ ## How to fix this Baseurl (current, not working): `"/hugo"` Baseurl (correct): `"https://pages.gitlab.io/hugo/"` ## Working example Config: https://gitlab.com/virtua-tests/hugo/blob/master/config.toml Website: https://virtua-tests.gitlab.io/hugo/ Posts: https://virtua-tests.gitlab.io/hugo/posts/newest/ https://virtua-tests.gitlab.io/hugo/posts/middle/ https://virtua-tests.gitlab.io/hugo/posts/oldest/ ---- cc/ @axil See merge request !1
This commit is contained in:
commit
d3a9e560a0
@ -1,7 +1,7 @@
|
|||||||
contentdir = "content"
|
contentdir = "content"
|
||||||
layoutdir = "layouts"
|
layoutdir = "layouts"
|
||||||
publishdir = "public"
|
publishdir = "public"
|
||||||
baseurl = "/hugo"
|
baseurl = "https://pages.gitlab.io/hugo/"
|
||||||
title = "Hugo Blog Template for GitLab Pages"
|
title = "Hugo Blog Template for GitLab Pages"
|
||||||
canonifyurls = true
|
canonifyurls = true
|
||||||
theme = "Lanyon"
|
theme = "Lanyon"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user