Update LoveIt and redirect home to posts

This commit is contained in:
nicholas committed 2026-10-02 10:48:15 -05:00
1 parent 3b31d98c2e
commit 7d9d90da5a
6 files changed
+24 -4

No files matched your search

+1 -1
View File
@@ -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
+2 -1
View File
@@ -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
EXPOSE 80
+14
View File
@@ -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;
}
}
+1 -1
View File
@@ -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
+5
View File
@@ -0,0 +1,5 @@
{{- define "content" -}}
{{- $postsURL := "/posts/" | relLangURL -}}
<p>Redirecting to <a href="{{ $postsURL }}">posts</a>…</p>
<script>window.location.replace({{ $postsURL | jsonify | safeJS }});</script>
{{- end -}}