fix: move /about/ page to homepage

This commit is contained in:
curben 2019-09-03 16:39:19 +01:00
parent b010379741
commit 2cd9094dc5
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
4 changed files with 8 additions and 7 deletions

View File

@ -98,8 +98,8 @@ theme_config:
# Header # Header
menu: menu:
Home: /blog/ Home: /
About: /about/ Blog: /blog/
Feed: /atom.xml Feed: /atom.xml
GitLab: https://gitlab.com/curben/blog GitLab: https://gitlab.com/curben/blog
@ -119,6 +119,7 @@ theme_config:
# If "icons: true" link names will interpreted as fontawesome icon names # If "icons: true" link names will interpreted as fontawesome icon names
# Use the forkawesome icon names (https://forkaweso.me/Fork-Awesome/icons/) without the fa- prefix # Use the forkawesome icon names (https://forkaweso.me/Fork-Awesome/icons/) without the fa- prefix
links: links:
Home: /blog/ Home: /
Blog: /blog/
Feed: /atom.xml Feed: /atom.xml
GitLab: https://gitlab.com/curben/blog GitLab: https://gitlab.com/curben/blog

View File

@ -13,7 +13,7 @@
{# home page #} {# home page #}
<url> <url>
<loc>{{ config.url + '/' + config.archive_dir + '/' | uriencode }}</loc> <loc>{{ config.url + '/' | uriencode }}</loc>
<lastmod>{{ sNow }}</lastmod> <lastmod>{{ sNow }}</lastmod>
<changefreq>daily</changefreq> <changefreq>daily</changefreq>
<priority>1.0</priority> <priority>1.0</priority>

View File

@ -1,5 +1,5 @@
# Temporarily set the homepage to /blog # Move about page to homepage
/ /blog/ 302 /about/ / 302
# Redirect post to /blog/ # Redirect post to /blog/
/:year/:month/:date/:slug /blog/:year/:month/:date/:slug/ 301 /:year/:month/:date/:slug /blog/:year/:month/:date/:slug/ 301

View File

@ -1 +1 @@
archive.ejs about.ejs