Update LoveIt and redirect home to posts
This commit is contained in:
1 parent
3b31d98c2e
commit
7d9d90da5a
6 files changed
+24
-4
No files matched your search
+1
-1
@@ -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
|
||||
@@ -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
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -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 -}}
|
||||
Submodule container/site/themes/LoveIt updated: ea76e2b8b1...23bc60506c.
Reference in new issue
Block a user