diff options
-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 |