diff --git a/_config.yml b/_config.yml index 67b4b4f..1cfb9d1 100644 --- a/_config.yml +++ b/_config.yml @@ -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 diff --git a/source/_redirects b/source/_redirects new file mode 100644 index 0000000..6dc7d27 --- /dev/null +++ b/source/_redirects @@ -0,0 +1,2 @@ +# Temporarily set the homepage to /blog +/ /blog 307 diff --git a/themes/typing/scripts/sitemap/.sitemap.xml b/themes/typing/scripts/sitemap/.sitemap.xml index 59a7b61..e698078 100644 --- a/themes/typing/scripts/sitemap/.sitemap.xml +++ b/themes/typing/scripts/sitemap/.sitemap.xml @@ -11,15 +11,15 @@ {% endfor %} - {# ------------- home page - with now date #} + {# home page #} - {{ config.url }} + {{ config.url + '/' + config.archive_dir + '/' }} {{ sNow }} daily 1.0 - {# ------------- tag pages #} + {# tag pages #} {% for tag in tags %} {{ tag.permalink }} @@ -29,7 +29,7 @@ {% endfor %} - {# ------------- categories pages #} + {# categories pages #} {% for cat in categories %} {{ cat.permalink }}