mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 10:50:24 +00:00
build: make github environment
This commit is contained in:
parent
1abe414079
commit
859e76cc85
3 changed files with 4 additions and 2 deletions
2
.github/actions/build_site/action.yaml
vendored
2
.github/actions/build_site/action.yaml
vendored
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
|
|
2
exampleSite/config/github/hugo.toml
Normal file
2
exampleSite/config/github/hugo.toml
Normal file
|
@ -0,0 +1,2 @@
|
|||
baseURL = "https://mcshelby.github.io/hugo-theme-relearn/"
|
||||
relativeURLs = false
|
Loading…
Reference in a new issue