blog: add redirect posts, tailscale nixos post

Signed-off-by: Christine Dodrill <me@christine.website>
This commit is contained in:
Cadey Ratio 2021-01-19 20:35:13 -05:00
parent b40cb9aa78
commit 444eee96b0
3 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,12 @@
---
title: "Tailscale on NixOS: A New Minecraft Server in Ten Minutes"
date: 2021-01-19
tags:
- link
redirect_to: https://tailscale.com/blog/nixos-minecraft/
---
# Tailscale on NixOS: A New Minecraft Server in Ten Minutes
Check out this post [on the Tailscale
blog](https://tailscale.com/blog/nixos-minecraft/)!

View File

@ -12,6 +12,7 @@ pub struct Data {
pub image: Option<String>, pub image: Option<String>,
pub thumb: Option<String>, pub thumb: Option<String>,
pub show: Option<bool>, pub show: Option<bool>,
pub redirect_to: Option<String>,
} }
enum State { enum State {

View File

@ -45,6 +45,12 @@
@} @}
</script> </script>
@if let Some(to) = post.front_matter.redirect_to.clone() {
<script>
window.location.replace("@to");
</script>
}
@body @body
<hr /> <hr />