Commit dbc6605
committed
Use root relative redirect paths and make absolute in layout
Why:
I want to re-use the redirect layout from some HTML frontmatter, and
you cannot use liquid templating nicely in the Jekyll frontmatter to
create an absolute url like "target: {{"/path/to/target" | absolute_url}}".
I want to use root relative paths so that it works when there is a base
url.
In future the layout would need adjustment if we wanted it to handle
absolute redirect targets, maybe passing a different property to the
page, or sniffing the first N characters for http:/https:
Signed-off-by: Robert Young <[email protected]>1 parent 52e8dcb commit dbc6605
2 files changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | | - | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
0 commit comments