diff options
author | Nan Xiao <road2stat@gmail.com> | 2019-01-27 00:10:16 +0300 |
---|---|---|
committer | Nan Xiao <road2stat@gmail.com> | 2019-01-27 00:10:16 +0300 |
commit | 75aaccc552b0a45917b4ce5274f3b223369d3eae (patch) | |
tree | 6bc5b5711a935b43e6572e53db7c25b146b1bd23 | |
parent | 603cd737bb70e7a8a89d2f1c537166b6681cfea6 (diff) |
set baseurl + use absolute url
-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" . }} |