summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-11-08 00:01:14 +0100
committersijanec <sijanecantonluka@gmail.com>2020-11-08 00:01:14 +0100
commit24780f7ea3ec837ee5e2cfde2129760158059003 (patch)
treec5fe03c8eb535f78916056f3b70c9e48275f3e48
parentsexy datumi (diff)
downloadsijanec.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.yml6
-rw-r--r--_layouts/redirect.html16
-rw-r--r--_redirects/blog.html4
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