From 5eccafa9c20493d087b35e299d81f165b663dcf9 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Mon, 2 Oct 2017 23:50:09 +1100 Subject: [PATCH] Add canonical URLs to everything, based on the wrapper template --- templates/default-layout-wrapper.hamlet | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/default-layout-wrapper.hamlet b/templates/default-layout-wrapper.hamlet index 4727263..0916ef3 100644 --- a/templates/default-layout-wrapper.hamlet +++ b/templates/default-layout-wrapper.hamlet @@ -7,6 +7,8 @@ $doctype 5 #{pageTitle pc} <meta name="description" content=""> <meta name="author" content=""> + $maybe route <- mcurrentRoute + <link rel="canonical" href=@{route}> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous"> ^{pageHead pc}