From ddd28b8628a38954c491675305eec09495e7305d Mon Sep 17 00:00:00 2001 From: Thomas Wood <thomas.wood09@imperial.ac.uk> Date: Fri, 27 Jan 2017 13:51:33 +0000 Subject: [PATCH] Use nice permalinks for top level pages --- Gemfile | 1 + Gemfile.lock | 5 ++++- news.html | 2 ++ people.html | 2 ++ publications.html | 2 ++ 5 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 2fbdae6..5a1aa47 100644 --- a/Gemfile +++ b/Gemfile @@ -7,6 +7,7 @@ group :default, :jekyll_plugins do gem 'jekyll-scholar', '~> 5.9.1' #gem 'jekyll-scholar', :git => '/home/thomas/jekyll-scholar', :branch => 'master' gem 'jekyll-sitemap' + gem 'jekyll-redirect-from' end group :test do diff --git a/Gemfile.lock b/Gemfile.lock index c1c3375..46d8772 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -48,6 +48,8 @@ GEM pathutil (~> 0.9) rouge (~> 1.7) safe_yaml (~> 1.0) + jekyll-redirect-from (0.12.1) + jekyll (~> 3.3) jekyll-sass-converter (1.5.0) sass (~> 3.4) jekyll-scholar (5.9.1) @@ -83,7 +85,7 @@ GEM public_suffix (2.0.5) rake (12.0.0) rb-fsevent (0.9.8) - rb-inotify (0.9.7) + rb-inotify (0.9.8) ffi (>= 0.5.0) rouge (1.11.1) safe_yaml (1.0.4) @@ -103,6 +105,7 @@ PLATFORMS DEPENDENCIES html-proofer (~> 3.0) jekyll + jekyll-redirect-from jekyll-scholar (~> 5.9.1) jekyll-sitemap pry diff --git a/news.html b/news.html index 0d91697..b174081 100644 --- a/news.html +++ b/news.html @@ -3,5 +3,7 @@ title: News menu: true menu_order: 2 layout: page +permalink: /news/ +redirect_from: /news.html --- {% include news-page.html posts=site.posts %} diff --git a/people.html b/people.html index f85c8eb..e57d16d 100644 --- a/people.html +++ b/people.html @@ -2,5 +2,7 @@ title: People menu: true menu_order: 3 +permalink: /people/ +redirect_from: /people.html --- {% include person-cards.html people=site.people %} diff --git a/publications.html b/publications.html index 76be1c0..9a8cf97 100644 --- a/publications.html +++ b/publications.html @@ -3,5 +3,7 @@ title: Publications menu: true layout: toc menu_order: 6 +permalink: /publications/ +redirect_from: /publications.html --- {% bibliography -g year %} -- GitLab