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