diff --git a/.github/actions/build_site/action.yaml b/.github/actions/build_site/action.yaml index 38f1b8129e..230b2121b4 100644 --- a/.github/actions/build_site/action.yaml +++ b/.github/actions/build_site/action.yaml @@ -11,4 +11,4 @@ runs: - name: Build site shell: bash run: | - hugo --source ${GITHUB_WORKSPACE}/exampleSite --destination ${GITHUB_WORKSPACE}/../public --cleanDestinationDir --gc --baseURL https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/ --theme ${GITHUB_WORKSPACE} + hugo --source ${GITHUB_WORKSPACE}/exampleSite --destination ${GITHUB_WORKSPACE}/../public --cleanDestinationDir --environment github --theme ${GITHUB_WORKSPACE} diff --git a/exampleSite/config/_default/hugo.toml b/exampleSite/config/_default/hugo.toml index a5f0263716..22ee90f527 100644 --- a/exampleSite/config/_default/hugo.toml +++ b/exampleSite/config/_default/hugo.toml @@ -6,7 +6,7 @@ baseURL = "https://example.com/" # required value to serve this page from a webserver AND the file system; # if you don't want to serve your page from the file system, you can also set this value # to false -relativeURLs = false # true -> rewrite all site-relative URLs (those with a leading slash) to be relative to the current content +relativeURLs = true # true -> rewrite all site-relative URLs (those with a leading slash) to be relative to the current content # if you set uglyURLs to false, this theme will append 'index.html' to any page bundle link # so your site can be also served from the file system; if you don't want that, # set disableExplicitIndexURLs=true in the [params] section diff --git a/exampleSite/config/github/hugo.toml b/exampleSite/config/github/hugo.toml new file mode 100644 index 0000000000..c678d5c15e --- /dev/null +++ b/exampleSite/config/github/hugo.toml @@ -0,0 +1,2 @@ +baseURL = "https://mcshelby.github.io/hugo-theme-relearn/" +relativeURLs = false