diff options
-rw-r--r-- | exampleSite/config.toml | 3 | ||||
-rw-r--r-- | layouts/404.html | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 6528ad7..158dfa7 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,7 +1,6 @@ -baseurl = "/" +baseurl = "https://nanx.me/hugo-tanka/" title = "Hugo Tanka Theme" author = "Nan Xiao" -relativeurls = true canonifyurls = true languagecode = "en" theme = "hugo-tanka" diff --git a/layouts/404.html b/layouts/404.html index af7a02a..4e1891b 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,5 +1,5 @@ {{ partial "header.html" . }} - <section id=not-found> - <a href=/>404</a> + <section id="not-found"> + <a href="{{ .Site.BaseURL }}">404</a> </section> {{ partial "footer.html" . }} |