the new, lightweight NUSComputing.com
Other than installing the requirements, there is nothing to do!
In order to view your changes, you will need to build the source files and serve them (as viewing them using the file
protocol might be quite wonky).
Don't fret, however! There is an easy way to do so, using Hugo's built-in server. This is the preferred method as it will automatically build and reload any changes you have made after spinning up the server.
You may want to run Hugo's server with the following flags, like so:
$ hugo server -w -t hugo-type-theme
As Hugo is a static website generator, there are currently no automated test suites. Use your eyes to test.
Once you are satisfied with the results, you can build the static website using the following command:
$ hugo
The result will be placed in the public/
directory.
- Open terminal in root folder, create new event type markdown file by typing:
$ hugo new event/<event name>.md
- Open the Markdown file in your favourite editor. Fill in the file with the event details as follows:
+++
externalLink = <link to event page>
image = <filename of image (in ./static/img/event)>
title = <title>
+++
<description of event>
- Commit, push and make a Pull Request to the repository.