19ae88079fab55ed44401c09e7f89251988f4bd9
web log
This is my personal blog.
Tech Stack
clone repository
To clone the repo and its submodules in one step:
git clone --recurse-submodules https://git.uuard.com/nicholas/web-log.git
or
git clone https://git.uuard.com/nicholas/web-log.git
cd web-log/themes
git submodule update --init --recursive
update submodules
git submodule update --remote --merge`
development server
hugo server
production
I have configured the Hugo site to serve media assets (images, videos) from an external host. To enable this, I have:
-
Defined a base URL for file server in my
hugo.toml:filesBase = "https://files.web-log.uuard.com" -
Created custom shortcodes (gallery, video, image) that:
- Accept a relative path (e.g.
"videos/fells-point-path.webm") - Resolve the full asset URL using the
filesBaseparameter - Use the full URL in (e.g.
<video>,<img>) HTML elements
- Accept a relative path (e.g.
Languages
HTML
81.9%
SCSS
15.9%
Dockerfile
2.2%