My personal website written in HUGO https://itsdrike.com
Go to file
2024-07-18 17:20:11 +02:00
.github/workflows Update hugo version 2024-06-05 15:14:59 +02:00
archetypes Initial commit (hugo) 2021-07-08 15:20:26 +02:00
content Improve wording in interpreted vs compiled post 2024-06-05 15:25:32 +02:00
data Add matrix to socials and contact 2021-08-29 13:22:37 +02:00
layouts Fix REF_NOT_FOUND build errors after hugo update 2024-06-05 15:10:03 +02:00
scripts Replace deprecated -v with --logLevel 2023-12-10 01:15:28 +01:00
static/src Make sure notices don't overlap stuff 2023-12-10 01:34:36 +01:00
.editorconfig Add editorconfig 2024-07-18 17:20:11 +02:00
.envrc Add nix dev-shell 2024-07-18 17:07:10 +02:00
.gitignore Add nix dev-shell 2024-07-18 17:07:10 +02:00
config.yml Use custom notice style in favor of hugo-notice 2022-07-24 01:51:08 +02:00
Dockerfile Automatically build a docker image to ghcr.io 2022-11-20 16:38:57 +01:00
flake.lock Add nix dev-shell 2024-07-18 17:07:10 +02:00
flake.nix Add nix dev-shell 2024-07-18 17:07:10 +02:00
LICENSE Initial commit (hugo) 2021-07-08 15:20:26 +02:00
nginx.conf Add missing semicolon 2022-11-20 16:46:25 +01:00
package-lock.json Add jquery 2021-08-25 19:36:37 +02:00
package.json Add jquery 2021-08-25 19:36:37 +02:00
README.md Mention usage with docker 2022-11-20 18:18:24 +00:00

My personal website

AGPL

This is the source code for my personal website, hosted on https://itsdrike.com

Building the website

The website is built using hugo, but you will also need npm, since it provides easy way to version control the needed packages. These include things such as Bootstrap SASS, Font Awesome (Free) and JQuery.

After all NPM requirements are satisfied, you will also need to synchronize to git submodules, to obtain additional themes.

To then build the static webpage using hugo, run ./scripts/build.sh, which will create a ./public directory, with all static files and can be hosted with a file server (such as nginx, or apache).

If you want to test out the webpage locally, or if you prefer to stick purely with hugo, even for deployment, instead of building the webpage, you can use hugo's server functionality and run the scripts/server.sh script instead of the build script. By default, this will host the server on http://localhost:1313, but you can pass hugo server arguments to the script, just like you would with running bare hugo server. For example:

$ ./scripts/server.sh --bind 0.0.0.0 --port 80 --baseURL https://itsdrike.com/

Docker

Another way to deploy the webpage is to use the automatically built docker container, which you can find here. This container is always built from latest version in the main branch, and to get it, you can simply run

$ sudo docker run -p 8080:80 ghcr.io/itsdrike/web

Which will expose the web on port 8080 (see it at http://127.0.0.1:8080)