Files
web-log/README.md
T
2025-07-05 15:36:34 +00:00

42 lines
1.1 KiB
Markdown

# web log
This is my personal blog.
## Tech Stack
- [Hugo](https://gohugo.io/)
- [Markdown](https://daringfireball.net/projects/markdown/)
- Submodules:
- [LoveIt theme](https://github.com/dillonzq/LoveIt)
### clone repository
To clone the repo and its submodules in one step:
```shell
git clone --recurse-submodules https://git.uuard.com/nicholas/web-log.git
```
or
```shell
git clone https://git.uuard.com/nicholas/web-log.git
cd web-log/themes
git submodule update --init --recursive
```
### update submodules
```shell
git submodule update --remote --merge`
```
### development server
```shell
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 `filesBase` parameter
- Use the full URL in (e.g. `<video>`, `<img>`) HTML elements