exampleSite: make configuration work from subfolder and canonifyURLs=false #163

This commit is contained in:
Sören Weber 2022-02-06 01:55:07 +01:00
parent 3fbf06aabd
commit 2ec9dc70c8
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589
2 changed files with 18 additions and 17 deletions

View file

@ -1,12 +1,13 @@
baseURL = "https://example.com"
canonifyURLs = true
canonifyURLs = false
relativeURLs = true
languageCode = "en"
defaultContentLanguage = "en"
title = "Hugo Relearn Documentation"
theme = "hugo-theme-relearn"
themesdir = "../.."
relativeURLs = true
[params]
editURL = "https://github.com/McShelby/hugo-theme-relearn/edit/main/exampleSite/content/"
@ -48,7 +49,7 @@ relativeURLs = true
[[Languages.en.menu.shortcuts]]
name = "<i class='fas fa-fw fa-camera'></i> Showcases"
url = "/showcase/"
url = "showcase/"
weight = 11
[[Languages.en.menu.shortcuts]]
@ -59,12 +60,12 @@ relativeURLs = true
[[Languages.en.menu.shortcuts]]
name = "<i class='fas fa-fw fa-bullhorn'></i> Credits"
url = "/credits/"
url = "credits/"
weight = 30
[[Languages.en.menu.shortcuts]]
name = "<i class='fas fa-fw fa-tags'></i> Tags"
url = "/tags/"
url = "tags/"
weight = 40
[Languages.pir]
@ -82,7 +83,7 @@ relativeURLs = true
[[Languages.pir.menu.shortcuts]]
name = "<i class='fas fa-fw fa-camera'></i> Showcases"
url = "/showcase/"
url = "showcase/"
weight = 11
[[Languages.pir.menu.shortcuts]]
@ -93,10 +94,10 @@ relativeURLs = true
[[Languages.pir.menu.shortcuts]]
name = "<i class='fas fa-fw fa-bullhorn'></i> Crrredits"
url = "/credits/"
url = "credits/"
weight = 30
[[Languages.pir.menu.shortcuts]]
name = "<i class='fas fa-fw fa-tags'></i> Arrr! Tags"
url = "/tags/"
url = "tags/"
weight = 40

View file

@ -20,7 +20,7 @@ weight = 10
[[menu.shortcuts]]
name = "<i class='fas fa-fw fa-camera'></i> Showcases"
url = "/showcase/"
url = "showcase/"
weight = 11
[[menu.shortcuts]]
@ -31,12 +31,12 @@ weight = 20
[[menu.shortcuts]]
name = "<i class='fas fa-fw fa-bullhorn'></i> Credits"
url = "/credits/"
url = "credits/"
weight = 30
[[menu.shortcuts]]
name = "<i class='fas fa-fw fa-tags'></i> Tags"
url = "/tags/"
url = "tags/"
weight = 40
````
@ -75,7 +75,7 @@ Example from the current website:
[[Languages.en.menu.shortcuts]]
name = "<i class='fas fa-fw fa-camera'></i> Showcases"
url = "/showcase/"
url = "showcase/"
weight = 11
[[Languages.en.menu.shortcuts]]
@ -86,12 +86,12 @@ Example from the current website:
[[Languages.en.menu.shortcuts]]
name = "<i class='fas fa-fw fa-bullhorn'></i> Credits"
url = "/credits/"
url = "credits/"
weight = 30
[[Languages.en.menu.shortcuts]]
name = "<i class='fas fa-fw fa-tags'></i> Tags"
url = "/tags/"
url = "tags/"
weight = 40
[Languages.pir]
@ -109,7 +109,7 @@ Example from the current website:
[[Languages.pir.menu.shortcuts]]
name = "<i class='fas fa-fw fa-camera'></i> Showcases"
url = "/showcase/"
url = "showcase/"
weight = 11
[[Languages.pir.menu.shortcuts]]
@ -120,12 +120,12 @@ Example from the current website:
[[Languages.pir.menu.shortcuts]]
name = "<i class='fas fa-fw fa-bullhorn'></i> Crrredits"
url = "/credits/"
url = "credits/"
weight = 30
[[Languages.pir.menu.shortcuts]]
name = "<i class='fas fa-fw fa-tags'></i> Arrr! Tags"
url = "/tags/"
url = "tags/"
weight = 40
````