From 3d6d152674024d1204419fa86dba9786b501e11c Mon Sep 17 00:00:00 2001 From: Tom Date: Tue, 15 Aug 2023 09:50:56 +0100 Subject: [PATCH] move blog to root so there's no redirect --- README.md | 1 - _config.yml | 2 +- _data/navigation.yml | 2 +- index.html | 4 ---- blog.html => index.md | 8 +++++--- 5 files changed, 7 insertions(+), 10 deletions(-) delete mode 100644 index.html rename blog.html => index.md (91%) diff --git a/README.md b/README.md index 1256316..6e363c6 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,6 @@ You probably want to run ruby from a version manager like `chruby`, see [here](h - add humans.txt https://humanstxt.org/ - fix the OG tags so that https://cards-dev.twitter.com/validator works - consider switching to using pandoc as a markdown renderer - - switch so that the blog is served from the root instead of doing a redirect - setup webmentions https://aarongustafson.github.io/jekyll-webmention_io/ ## Notes diff --git a/_config.yml b/_config.yml index 46ea1d2..147c2e7 100644 --- a/_config.yml +++ b/_config.yml @@ -27,4 +27,4 @@ whitelist: - flexible_include feed: - posts_limit: 20 \ No newline at end of file + posts_limit: 100 \ No newline at end of file diff --git a/_data/navigation.yml b/_data/navigation.yml index e540749..b44fb10 100644 --- a/_data/navigation.yml +++ b/_data/navigation.yml @@ -1,5 +1,5 @@ - name: Blog - link: /blog/ + link: / - name: CV link: /cv/ - name: Thesis diff --git a/index.html b/index.html deleted file mode 100644 index 641c069..0000000 --- a/index.html +++ /dev/null @@ -1,4 +0,0 @@ ---- -title: Home -redirect_to: /blog ---- \ No newline at end of file diff --git a/blog.html b/index.md similarity index 91% rename from blog.html rename to index.md index b27b5ef..8981cbf 100644 --- a/blog.html +++ b/index.md @@ -1,7 +1,9 @@ --- -layout: default title: Blog -permalink: /blog/ +layout: default +permalink: / +redirect_from: + - /blog/ --- {% for post in site.posts %}
@@ -10,4 +12,4 @@ permalink: /blog/ {{ post.excerpt | markdownify | remove: '

' | remove: '

' }}
-{% endfor %} +{% endfor %} \ No newline at end of file