All the code required to generate the www.pass-the-salt.org website.
apt install hugo
or visit https://gohugo.io/installation/linux/ and take the Extended edition.
Clone this Github repo: git clone https://github.com/pass-the-salt/www-hugo.git
Some indications about the different directories and files:
-
config.toml: contains global parameters of the site (title, logo, lang, top and bottom menu content) but also homepage content in the tiles items. -
themes/forty/layouts/: several directories containing all HTML templates of the Vex theme. -
content/: Markdown content of individual pages. -
static/: images and files. -
public/: HTML pages generated by theHugoengine. -
hooking: each push on the Github repo will activate a webhook (URL:
https://www.pass-the-salt.org/cgi-bin/update.cgi). The hook content is in thecgi-bin/update.cgifile. The script launched by the hook will check if updates exist on Github repo. If it is the case, it fetchs them to/var/www/2024directory on the server and then, rsync the content of thepublic/sub directory with the content of the website located in/var/www/2024-passthesalt.