Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nanxstats/hugo-tanka.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNan Xiao <road2stat@gmail.com>2019-01-27 00:10:16 +0300
committerNan Xiao <road2stat@gmail.com>2019-01-27 00:10:16 +0300
commit75aaccc552b0a45917b4ce5274f3b223369d3eae (patch)
tree6bc5b5711a935b43e6572e53db7c25b146b1bd23
parent603cd737bb70e7a8a89d2f1c537166b6681cfea6 (diff)
set baseurl + use absolute url
-rw-r--r--exampleSite/config.toml3
-rw-r--r--layouts/404.html4
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" . }}