Explore All Around Here
{{ config.title }}
-
{% for post in config.posts %}
-
- +
{{ post.title }}
{{ post.location }} diff --git a/templates/nginx.conf.d.j2 b/templates/nginx.conf.d.j2 index e69de29..becad26 100644 --- a/templates/nginx.conf.d.j2 +++ b/templates/nginx.conf.d.j2 @@ -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; +} +}