From 7444a377e4632eb31a23fd73bcb82e7c118504ff Mon Sep 17 00:00:00 2001 From: Daniel Barber Date: Sat, 6 Jul 2019 22:28:13 -0400 Subject: [PATCH] Redirect to new permalink URL --- _config.yml | 2 +- _redirects | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index a9d455d..e809484 100644 --- a/_config.yml +++ b/_config.yml @@ -34,7 +34,7 @@ exclude: include: - _redirects -permalink: "/:title" +permalink: ":year/:month/:day/:title" excerpt_separator: "" paginate: 10 paginate_path: blog/page/:num diff --git a/_redirects b/_redirects index 831bee8..574c9b3 100644 --- a/_redirects +++ b/_redirects @@ -1,5 +1,12 @@ +--- +--- + /cv https://cv.danbarber.me 301 /invaders https://danbee.github.io/invaders 301 /canvas https://danbee.github.io/canvas 301 /atom.xml /feed.xml 301 /micropub/* https://micropubme.herokuapp.com/micropub/:splat 200 + +{% for post in site.posts -%} +/{{ post.slug }} {{ post.url }} 301 +{% endfor %}