On this page
FS25 Mod - Hugo Theme
Getting Started
1. Installing Hugo
https://gohugo.io/installation/ or WinGet: winget install Hugo.Hugo.Extended
2. Add the FS25 Mod Hugo Theme as a subtree in your Git root
git subtree add --prefix docs/themes/fs25_mod_hugo_theme --squash https://gitlab.com/StrauntMaunt/fs25_mod_hugo_theme.git master
3. Copy the Example Site
Copy-Item -Recurse "docs/themes/fs25_mod_hugo_theme/examplesite/*" "docs/"
4. Running the docs
Set-Location "docs"
hugo server
5. Configure the basic settings in config.toml
Update the baseurl to https://USERNAME.gitlab.io/PROJECTNAME
6. Activate Gitlab Pages
Include the pipeline job
Add a file .gitlab-ci.yml
in the root of the project.
include: 'docs/.gitlab-ci.yml'
Push this change so a build can start.
In your Gitlab project configure Deploy/Pages.
Disable Use unique domain
. This should give you a fixed link to your website: https://USERNAME.gitlab.io/PROJECTNAME
Updating FS25 theme in existing Hugo project
git subtree pull --prefix docs/themes/fs25_mod_hugo_theme --squash https://gitlab.com/StrauntMaunt/fs25_mod_hugo_theme.git master
Example Folder Structure
- FS25_ModName
- src
- ModDesc.xml
- …
- docs
- content/docs
- page.md
- themes/fs25_hugo_template/…
- .gitignore
- .gitlab-ci.yml
- go.mod
- hugo.toml
- content/docs
- .gitlab-ci.yml
- src