Update build script and templates for new org structure

This commit is contained in:
2021-04-22 16:36:35 -04:00
parent cedd73996f
commit 6cfd6146e8
3 changed files with 148 additions and 8 deletions

View File

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