TLDR: follow the patterns you can see in content/about/employees.
$ hugo new about/employees/<your-name>/index.md # This will be part of the URL
$ cp /path/to/your/face.png content/about/employees/<your-name>/Then make sure index.md is set up with something like this in the header:
title: "your name"
date: yyyy-mm-dd
resources:
- name: photo
src: <something>.png
linkedin: https://www.linkedin.com/in/<something>
email: <your-name>@xal.no
The date used should preferably be your date of employment in XAL.
Create a new page with
$ hugo new posts/look-ma-im-a-blogger/index.mdthen write something in it.
Check the output with
$ hugo server -Dwhich serves the page at localhost:1313 with hot reloading and drafts enabled
(the -D). Note that this will only allow you to connect to the server though
localhost. If you need to access from e.g. a mobile device, find your IP
address and run
$ hugo server hugo --bind=your.ip.addess.goes.here -DYou can check your PR by opening the following page in your selection of browsers and devices:
http://<branch_name>.pr.dev.xal.no
Remember to check with both a computer and a phone (and preferably a couple of different browsers).
Pushing to master triggers an automatic deploy through Travis CI
For template creation and local build install hugo https://gohugo.io/getting-started/installing/:
sudo apt-get install hugo
or
sudo pacman -Syu hugo
or what ever creazy pkg manger you use.
If you have brew:
brew install hugo
if not get brew! Or Linux ;)