diff options
| -rw-r--r-- | templates/blogpost.rs.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/blogpost.rs.html b/templates/blogpost.rs.html index 9438546..029192e 100644 --- a/templates/blogpost.rs.html +++ b/templates/blogpost.rs.html @@ -20,7 +20,9 @@ <meta name="description" content="@post.front_matter.title - Christine Dodrill's Blog" /> <meta name="author" content="Christine Dodrill"> -<link rel="canonical" href="https://christine.website/@post.link"> +@if post.front_matter.redirect_to.is_none() { + <link rel="canonical" href="https://christine.website/@post.link"> +} <script type="application/ld+json"> @{ |
