Planned to upgrade GitLab this Friday morning to the latest version. Expect some down time!

E

eduweb

Name Last Update
archetypes Loading commit data...
content Loading commit data...
layouts Loading commit data...
static Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
config.toml Loading commit data...
deploy-hugo.sh Loading commit data...
start-hugo Loading commit data...

StITPro/RU-Science Eduweb

The staticgen website is made using Hugo The Eduweb theme is (based on) HugoMDL

Hugo is a fast website compiler to create static websites from Markdown files.

The advantage of a staticgen website is to create a website without any traction for malware injection, thereby reducing the security overhead of running the website.

Deploying the Eduweb website

Requirements

  1. Clone of this repository in directory X: git clone https://gitlab.science.ru.nl/cncz/eduweb.git X
  2. mkdir X/themes && cd X/themes
  3. Clone of Eduweb theme in X/themes/HugoMDL: git clone https://gitlab.science.ru.nl/cncz/eduweb-theme.git HugoMDL
  4. A working hugo (recommended version: latest, but no older than 0.18)

View site on local machine

  1. modify start-hugo script to use the correct path to hugo's single executable
  2. run start-hugo from directory X like: ./start-hugo
  3. connect to http://localhost:1313/ (NB: use firefox or chrome/chromium to browse)

Deploy site to webserver

  1. modify start-hugo script to use the correct path to hugo's single executable
  2. modify config.toml to change baseurl to the correct value (must be a URL without a path) example: http://x.example.com/
  3. run start-hugo from directory X like: ./start-hugo gen
  4. copy the entire tree of files/directories from ./public/ to a webserver.
  5. connect to http://x.example.com/ (NB: use firefox or chrome/chromium to browse)