diff options
Diffstat (limited to 'src/tmpl')
| -rw-r--r-- | src/tmpl/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tmpl/mod.rs b/src/tmpl/mod.rs index d5ae9d4..1941d94 100644 --- a/src/tmpl/mod.rs +++ b/src/tmpl/mod.rs @@ -160,7 +160,7 @@ pub fn post_index(posts: &Vec<Post>, title: &str, show_extra: bool) -> Markup { li { (post.detri()) " - " - a href={"/" (post.link)} { (post.front_matter.title) } + a href={ @if post.front_matter.redirect_to.as_ref().is_some() {(post.front_matter.redirect_to.as_ref().unwrap())} @else {"/" (post.link)}} { (post.front_matter.title) } } } } |
