Update templates to use new data config data model
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user