diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2025-08-06 18:22:58 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2025-08-06 18:22:58 -0400 |
| commit | 3bacf8696a5f6da403c8a6efec629f488218d10a (patch) | |
| tree | 6ef67af6a0e9e3992a68dd94ba9cfc1b4ff3fb51 | |
| parent | 1ca1c330ed56ecb93a6527f38a7deb4a9451a27c (diff) | |
better 404
| -rw-r--r-- | nginx/homepage.conf | 7 | ||||
| -rw-r--r-- | zola-static/templates/index.html | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/nginx/homepage.conf b/nginx/homepage.conf index 3bffb04..a9616c0 100644 --- a/nginx/homepage.conf +++ b/nginx/homepage.conf @@ -2,10 +2,15 @@ server { server_name jackjamison.net www.jackjamison.net ; + error_page 404 = /404.html; + location = /404.html { + internal; + root /var/www/homepage/404.html; + } + location / { root /var/www/homepage; index index.html; - error_page 404 404.html; } listen [::]:443 ssl ipv6only=on; # managed by Certbot diff --git a/zola-static/templates/index.html b/zola-static/templates/index.html index 3ae683e..98fe87f 100644 --- a/zola-static/templates/index.html +++ b/zola-static/templates/index.html @@ -11,6 +11,7 @@ <div class="index-section"> <h2>Articles</h2> <ul> + <li><a href="{{ get_url(path='@/blog/sdl-native-wayland.md') }}">Forcing SDL to use Wayland on Wayland</a></li> <li><a href="{{ get_url(path='@/blog/emacs-garbage-collection.md') }}">Solving Emacs Garbage Collection Stutters</a></li> </ul> </div> |
