- Licensing information
- Installation
- Development
- Deployment
- Add Content
Please note that the MIT license does not apply to all the files shared in this repository. See LICENSE.md and LICENSE-images.md for details.
You can find detailed installation instructions on the official hugo website. Below you find the basic configurations to quickly install hugo on your local system. If you encounter any problems or require a special configuration visit the official website.
Congratulations! You are on the most complicated system for using hugo 🎉.
- Download the latest zipped Hugo Extended executable from Hugo Releases. The current version for 64-bit is called
hugo_extended_0.49_Windows-64bit.zip
. - Extract all contents to your
..\Hugo\bin
folder. - The hugo executable will be named as hugo_hugo-version_platform_arch.exe. Rename the executable to hugo.exe for ease of use.
- In PowerShell or your preferred CLI, add the hugo.exe executable to your PATH by navigating to C:\Hugo\bin (or the location of your hugo.exe file) and use the command set
PATH=%PATH%;C:\Hugo\bin
. - Reboot your system.
- Open the PowerShell or your preferred CLI and enter
hugo version
to verify your installation.
Use brew
to install hugo
on your local system. Run hugo version
to verify your installation.
brew install hugo
Use apt
to install hugo
on your local system. Run hugo version
to verify your installation.
sudo apt-get install hugo
git clone https://github.com/CorrelAid/hugo-website.git
Hugo provides a development server that enables hot-reload. The folder is watched by hugo and as soon as you change a file the website is automatically reloaded.
- Open your favorite CLI and direct to the folder of your web application.
- Use
hugo server -D
to start the development server. The-D
flag is important to indicate that drafts are also shown. - Use CTRL + C to shutdown the server.
- Commit your changes to GitHub. If you're not an admin, you cannot push to the
main
branch, so please create a branch for your changes and then open a pull request. - Pull requests to the
main
branched are built into a deploy preview by Netlify. You will see this in the PR status checks. If you click on "Details" for the last status check (it should say something like "Deploy preview ready!"), you'll be taken to the deploy preview. - After someone has reviewed your changes and approved them, they'll be merged to
main
and automatically deployed to our FTP server by GitHub Actions. You can check the status of this deployment by looking at the "Actions" tab of the GitHub Repository. This will only happend if you have modified files that are actually relevant to the website, i.e. updating the README will not trigger a build.
- Make a copy of a page which is found in the content folder under a language. These are markdown files
.md
- Change the yaml header to suit your new page:
- The menu key will add a link in the top menu of the banner; its weight governs the ordering of the links
- Create the content in your new page
- Ensure there's a version of the page for each language in the content folder
Every image that is used for a blog entry has the size 800px*500px.