Update templates to use new data config data model

This commit is contained in:
2021-04-24 22:34:23 -04:00
parent 4541f80bcc
commit 93d837c590
2 changed files with 13 additions and 14 deletions

View File

@@ -1,16 +1,16 @@
location = http{{ 's' if config.https else '' }}://{{ config.site }}/robots.txt {
location = robots.txt {
allow all;
log_not_found off;
access_log off;
}
location = http{{ 's' if config.https else '' }}://{{ config.site }}/{{ config.path.output }}/ {
location = explore/ {
index index.html
}
location ~* http{{ 's' if config.https else '' }}://{{ config.site }}/{{ config.path.output }}/(.*)/ {
location ~* explore/(.*)/ {
if ($request_uri ~ ^/(.*)\.html) {
return 302 http{{ 's' if config.https else '' }}://{{ config.site }}/{{ config.path.output }}/$1/;
return 302 explore/$1/;
}
try_files $uri $uri.html $uri/ =404;
}