fix: Temporarily set the homepage to /blog

This commit is contained in:
curben 2019-06-12 17:54:08 +09:30
parent e2a27c2d8f
commit 1ccf7038b8
3 changed files with 8 additions and 6 deletions

View File

@ -13,7 +13,7 @@ timezone:
# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: https://curben.netlify.com
root: ''
root: /
permalink: blog/:year/:month/:day/:title/
permalink_defaults:
@ -95,7 +95,7 @@ theme_config:
# Header
menu:
Home: /
Home: /blog
About: /about
GitLab: https://gitlab.com/curben/blog

2
source/_redirects Normal file
View File

@ -0,0 +1,2 @@
# Temporarily set the homepage to /blog
/ /blog 307

View File

@ -11,15 +11,15 @@
</url>
{% endfor %}
{# ------------- home page - with now date #}
{# home page #}
<url>
<loc>{{ config.url }}</loc>
<loc>{{ config.url + '/' + config.archive_dir + '/' }}</loc>
<lastmod>{{ sNow }}</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
{# ------------- tag pages #}
{# tag pages #}
{% for tag in tags %}
<url>
<loc>{{ tag.permalink }}</loc>
@ -29,7 +29,7 @@
</url>
{% endfor %}
{# ------------- categories pages #}
{# categories pages #}
{% for cat in categories %}
<url>
<loc>{{ cat.permalink }}</loc>