I deploy a hugo into github-page. Web like this nguyenchungvan.github.io/test-deploy.
But when I transfer to another languages, the url change like this nguyenchungvan.github.io/vi/
instead of .../test-deploy/vi/, and this cause 404
There isn’t a GitHub Pages site here.
This is my configure page:
relativeURLs = true
# Change the default theme to be use when building the site with Hugo
theme = "hugo-theme-learn"
# For search functionality
[outputs]
home = [ "HTML", "RSS", "JSON"]
I use relativeURLs = true for access to static images. The changing languages worked normally when running in local host. Please give me some advice for this.
my config file like the document: relativeURLs = true
# Change the default theme to be use when building the site with Hugo
theme = "hugo-theme-learn"
# For search functionality
[outputs]
home = [ "HTML", "RSS", "JSON"]
[params]
# Change default color scheme with a variant one. Can be "red", "blue", "green".
themeVariant = "workshop"
# Git hub repo link
editURL = ""
description = ""
author = "journeyoftheaverageguy@gmail.com"
showVisitedLinks = true
disableBreadcrumb = false
disableNextPrev = false
[Languages]
[Languages.en]
title = "AWS System Manager"
weight = 1
languageName = "English"
[[Languages.en.menu.shortcuts]]
name = "<i class='fab fa-facebook'></i> AWS Study Group"
identifier = "AWS Study Group FB"
url = "groups/awsstudygroupfcj/"
weight = 20
[Languages.vi]
title = "AWS System Manager"
weight = 2
languageName = "Tiếng Việt"
[[Languages.vi.menu.shortcuts]]
name = "<i class='fab fa-facebook'></i> AWS Study Group"
identifier = "AWS Study Group FB"
url = "groups/awsstudygroupfcj/"
weight = 20