From 444eee96b03d3cb97114c68da995db7d038c63cf Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Tue, 19 Jan 2021 20:35:13 -0500 Subject: [PATCH] blog: add redirect posts, tailscale nixos post Signed-off-by: Christine Dodrill --- ...ixos-minecraft-tailscale-blog-2021-01-19.markdown | 12 ++++++++++++ src/post/frontmatter.rs | 1 + templates/blogpost.rs.html | 6 ++++++ 3 files changed, 19 insertions(+) create mode 100644 blog/nixos-minecraft-tailscale-blog-2021-01-19.markdown diff --git a/blog/nixos-minecraft-tailscale-blog-2021-01-19.markdown b/blog/nixos-minecraft-tailscale-blog-2021-01-19.markdown new file mode 100644 index 0000000..b8baa39 --- /dev/null +++ b/blog/nixos-minecraft-tailscale-blog-2021-01-19.markdown @@ -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/)! diff --git a/src/post/frontmatter.rs b/src/post/frontmatter.rs index f2c1587..595079f 100644 --- a/src/post/frontmatter.rs +++ b/src/post/frontmatter.rs @@ -12,6 +12,7 @@ pub struct Data { pub image: Option, pub thumb: Option, pub show: Option, + pub redirect_to: Option, } enum State { 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 @@ @} +@if let Some(to) = post.front_matter.redirect_to.clone() { + +} + @body