From 24780f7ea3ec837ee5e2cfde2129760158059003 Mon Sep 17 00:00:00 2001 From: sijanec Date: Sun, 8 Nov 2020 00:01:14 +0100 Subject: dodani redirects --- _config.yml | 6 ++++++ _layouts/redirect.html | 16 ++++++++++++++++ _redirects/blog.html | 4 ++++ 3 files changed, 26 insertions(+) create mode 100644 _layouts/redirect.html create mode 100644 _redirects/blog.html diff --git a/_config.yml b/_config.yml index 232f0b9..873f2f0 100644 --- a/_config.yml +++ b/_config.yml @@ -30,6 +30,8 @@ collections: posts: output: true permalink: /blog/:categories/:year/:month/:day/:title:output_ext + redirects: + output: true defaults: - scope: @@ -46,6 +48,10 @@ defaults: path: "" values: layout: "default" + - scope: + path: "" + values: + layout: "redirect" plugins: - jekyll-feed diff --git a/_layouts/redirect.html b/_layouts/redirect.html new file mode 100644 index 0000000..2f03085 --- /dev/null +++ b/_layouts/redirect.html @@ -0,0 +1,16 @@ +--- +--- + + + + + + +

preusmerjam na {{ content }}...

+

+ + če se nič ne zgodi, kliknite sem. + +

+ + diff --git a/_redirects/blog.html b/_redirects/blog.html new file mode 100644 index 0000000..927e517 --- /dev/null +++ b/_redirects/blog.html @@ -0,0 +1,4 @@ +--- +permalink: /blog/index.html +--- +/blog/objave.html -- cgit v1.2.3