aboutsummaryrefslogtreecommitdiff
path: root/templates/blogpost.rs.html
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2021-01-19 20:35:13 -0500
committerChristine Dodrill <me@christine.website>2021-01-19 20:35:13 -0500
commit444eee96b03d3cb97114c68da995db7d038c63cf (patch)
treec198824566ca53f6d0ed75d4d92d1b335345b978 /templates/blogpost.rs.html
parentb40cb9aa784fed4f90bb1c43a6cd4ffda2f18399 (diff)
downloadxesite-444eee96b03d3cb97114c68da995db7d038c63cf.tar.xz
xesite-444eee96b03d3cb97114c68da995db7d038c63cf.zip
blog: add redirect posts, tailscale nixos post
Signed-off-by: Christine Dodrill <me@christine.website>
Diffstat (limited to 'templates/blogpost.rs.html')
-rw-r--r--templates/blogpost.rs.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/blogpost.rs.html b/templates/blogpost.rs.html
index 6ac3c1e..9438546 100644
--- a/templates/blogpost.rs.html
+++ b/templates/blogpost.rs.html
@@ -45,6 +45,12 @@
@}
</script>
+@if let Some(to) = post.front_matter.redirect_to.clone() {
+ <script>
+ window.location.replace("@to");
+ </script>
+}
+
@body
<hr />