Skip to content

Commit 38be23d

Browse files
committed
layouts/redirect: Add support for arbitrary layout.redirect URL
Still missing support for arbitrary page.redirect URL, this is documented with a comment
1 parent 8308fb0 commit 38be23d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

site/_layouts/redirect.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
{% endif %}
55
{% if redirect_set %}
66
{% assign redirect = page.redirect | replace: "@@OTD_VERSION@@", site.latest_otd_version %}
7+
{% else %}
8+
{% comment %}
9+
TODO: implement generic page.redirect support
10+
{% endcomment %}
11+
{% assign redirect = layout.redirect %}
712
{% endif %}
813
<html>
914
<head>

0 commit comments

Comments
 (0)