From 0e68e60cb0e64fe530769e7de58e068779e68b3a Mon Sep 17 00:00:00 2001 From: Nicolas Kuttler Date: Fri, 13 Feb 2015 07:50:25 +0100 Subject: Use permanent URIS Unfortunately URI routing sucks in jekyll, see http://jekyllrb.com/docs/permalinks/. It's easy enough to get /foo/bar/title/ for posts and articles, but pages are a different matter. There are a few unresolved bug reports, and the best solution seems to be to hardcode the URI into every page. http://www.w3.org/Provider/Style/URI --- _config.yml | 3 ++- about/index.markdown | 1 + articles/index.markdown | 1 + support/index.markdown | 1 + support/irc/index.markdown | 1 + support/mailinglists/index.markdown | 1 + 6 files changed, 7 insertions(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index 1df1331..007727b 100644 --- a/_config.yml +++ b/_config.yml @@ -1,4 +1,4 @@ -permalink: "/:year/:month/:day/:title" +permalink: "/:year/:month/:day/:title/" exclude: ["README.markdown"] lsi: false safe: true @@ -18,3 +18,4 @@ paginate_path: "news/:num/" collections: articles: output: true + permalink: "/articles/:title/" diff --git a/about/index.markdown b/about/index.markdown index e04b107..aaff8ae 100644 --- a/about/index.markdown +++ b/about/index.markdown @@ -1,6 +1,7 @@ --- layout: page title: About Irssi +permalink: about/ --- Introduction diff --git a/articles/index.markdown b/articles/index.markdown index 252470f..29f81c3 100644 --- a/articles/index.markdown +++ b/articles/index.markdown @@ -1,6 +1,7 @@ --- layout: default title: Articles +permalink: articles/ --- Articles diff --git a/support/index.markdown b/support/index.markdown index 416f51d..9bae485 100644 --- a/support/index.markdown +++ b/support/index.markdown @@ -1,6 +1,7 @@ --- layout: page title: Support +permalink: support/ --- - [Mailing lists](mailinglists) diff --git a/support/irc/index.markdown b/support/irc/index.markdown index fa6cf93..8769d2d 100644 --- a/support/irc/index.markdown +++ b/support/irc/index.markdown @@ -1,6 +1,7 @@ --- layout: page title: IRC +permalink: support/irc/ --- Official international channels diff --git a/support/mailinglists/index.markdown b/support/mailinglists/index.markdown index 6abbc96..d8fdc89 100644 --- a/support/mailinglists/index.markdown +++ b/support/mailinglists/index.markdown @@ -1,6 +1,7 @@ --- layout: page title: Mailing lists +permalink: support/mailinglists/ --- irssi-users -- cgit debian/1.2.3+git2.25.1-1-2-gaceb0 From 835b254d50d7e598f39c11e67c9b661f7b8ab56d Mon Sep 17 00:00:00 2001 From: Nicolas Kuttler Date: Fri, 13 Feb 2015 07:57:16 +0100 Subject: Fix links for empty baseurl setting --- _includes/header.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/header.html b/_includes/header.html index 61ed5e2..dfe0a4d 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -7,14 +7,14 @@ - + {% comment %}{{ site.title }}{% endcomment %}