Download binary or source from https://github.com/spf13/hugo/releases.
hugo new site tmpName
cd tmpName
cd themes
wget https://github.com/matcornic/hugo-theme-learn/archive/master.zip; unzip master.zip
or choose a theme from http://themes.gohugo.io/
baseURL = "http://USERNAME.pages.jsc.fz-juelich.de/PROJECTNAME"
theme = "hugo-theme-learn-master"
languageCode = "en-us"
title = "MY NICE TITLE"
canonifyurls = true
[outputs]
home = [ "HTML", "RSS", "JSON"]
You may create contents using e.g. markdown, html or asciidoc.
vi content/_index.md
vi contents/_header.md # insert header line above seach dialog here
or
hugo new post/new_post.md
hugo server --buildDrafts
To deploy the files to the JSC GitLab server, the following steps have to be done:
.gitlab-ci.yml
Creating and pushing the following file will use the GitLab Continious Integration feature to generate the html files with hugo and deploy them on the server. The script is executed on a shared docker runner with the tag “linux”.
pages:
tags:
- public-docker
image: jojomi/hugo
script:
- hugo version
- hugo
artifacts:
paths:
- public