diff options
author | sijanec <sijanecantonluka@gmail.com> | 2020-11-08 00:01:14 +0100 |
---|---|---|
committer | sijanec <sijanecantonluka@gmail.com> | 2020-11-08 00:01:14 +0100 |
commit | 24780f7ea3ec837ee5e2cfde2129760158059003 (patch) | |
tree | c5fe03c8eb535f78916056f3b70c9e48275f3e48 | |
parent | sexy datumi (diff) | |
download | sijanec.eu-24780f7ea3ec837ee5e2cfde2129760158059003.tar sijanec.eu-24780f7ea3ec837ee5e2cfde2129760158059003.tar.gz sijanec.eu-24780f7ea3ec837ee5e2cfde2129760158059003.tar.bz2 sijanec.eu-24780f7ea3ec837ee5e2cfde2129760158059003.tar.lz sijanec.eu-24780f7ea3ec837ee5e2cfde2129760158059003.tar.xz sijanec.eu-24780f7ea3ec837ee5e2cfde2129760158059003.tar.zst sijanec.eu-24780f7ea3ec837ee5e2cfde2129760158059003.zip |
-rw-r--r-- | _config.yml | 6 | ||||
-rw-r--r-- | _layouts/redirect.html | 16 | ||||
-rw-r--r-- | _redirects/blog.html | 4 |
3 files changed, 26 insertions, 0 deletions
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 @@ +--- +--- +<!DOCTYPE html> +<html lang=sl> + <head> + <meta http-equiv=refresh content="0;'{{ content }}'" /> + </head> + <body> + <h1>preusmerjam na {{ content }}...</h1> + <h2> + <a href="{{ content }}"> + če se nič ne zgodi, kliknite sem. + </a> + </h2> + </body> +</html> 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 |