From 7d9d90da5a123aa913e836649575e6072401e34a Mon Sep 17 00:00:00 2001 From: Nicholas Ward Date: Fri, 2 Oct 2026 10:48:15 -0500 Subject: [PATCH] Update LoveIt and redirect home to posts --- .gitmodules | 2 +- container/Dockerfile | 3 ++- container/nginx.conf | 14 ++++++++++++++ container/site/hugo.toml | 2 +- container/site/layouts/home.html | 5 +++++ container/site/themes/LoveIt | 2 +- 6 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 container/nginx.conf create mode 100644 container/site/layouts/home.html diff --git a/.gitmodules b/.gitmodules index 418914f..7afb4f9 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "container/site/themes/LoveIt"] path = container/site/themes/LoveIt - url = https://github.com/sulrich/LoveIt.git + url = https://github.com/dillonzq/LoveIt.git diff --git a/container/Dockerfile b/container/Dockerfile index 94d3933..d9f0bde 100644 --- a/container/Dockerfile +++ b/container/Dockerfile @@ -3,5 +3,6 @@ FROM nginx:alpine RUN rm -rf /usr/share/nginx/html/* COPY site/public /usr/share/nginx/html/ +COPY nginx.conf /etc/nginx/conf.d/default.conf -EXPOSE 80 \ No newline at end of file +EXPOSE 80 diff --git a/container/nginx.conf b/container/nginx.conf new file mode 100644 index 0000000..81eaa0b --- /dev/null +++ b/container/nginx.conf @@ -0,0 +1,14 @@ +server { + listen 80; + server_name _; + root /usr/share/nginx/html; + index index.html; + + location = / { + return 301 /posts/; + } + + location / { + try_files $uri $uri/ =404; + } +} diff --git a/container/site/hugo.toml b/container/site/hugo.toml index 329e9c7..a8c2495 100644 --- a/container/site/hugo.toml +++ b/container/site/hugo.toml @@ -195,7 +195,7 @@ ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"] disclaimer = "" # Home page posts [params.home.posts] - enable = true + enable = false # special amount of posts in each home posts page paginate = 6 # replaced with hiddenFromHomePage in params.page diff --git a/container/site/layouts/home.html b/container/site/layouts/home.html new file mode 100644 index 0000000..6532944 --- /dev/null +++ b/container/site/layouts/home.html @@ -0,0 +1,5 @@ +{{- define "content" -}} + {{- $postsURL := "/posts/" | relLangURL -}} +

Redirecting to posts…

+ +{{- end -}} diff --git a/container/site/themes/LoveIt b/container/site/themes/LoveIt index ea76e2b..23bc605 160000 --- a/container/site/themes/LoveIt +++ b/container/site/themes/LoveIt @@ -1 +1 @@ -Subproject commit ea76e2b8b1ddfd50e7c2ab89a423de5cdc5ac886 +Subproject commit 23bc60506c5632547bdc7b56b927ae154a321c27