From a0dd673af72a6b3165fea160f92d06aa21c30bf7 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Fri, 6 Oct 2017 15:04:46 +1100 Subject: [PATCH] Add a few more useful rels to the layout's links --- templates/default-layout-wrapper.hamlet | 1 + templates/default-layout.hamlet | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/default-layout-wrapper.hamlet b/templates/default-layout-wrapper.hamlet index 58a3c1f..e7cb77c 100644 --- a/templates/default-layout-wrapper.hamlet +++ b/templates/default-layout-wrapper.hamlet @@ -8,6 +8,7 @@ $doctype 5 #{pageTitle pc} $maybe route <- mcurrentRoute <link rel="canonical" href=@{route}> + <link rel="sitemap" href=@{SitemapR}> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous"> <script src="https://use.fontawesome.com/4fbab4ae27.js"> diff --git a/templates/default-layout.hamlet b/templates/default-layout.hamlet index a97bd3d..1a34e7c 100644 --- a/templates/default-layout.hamlet +++ b/templates/default-layout.hamlet @@ -1,7 +1,7 @@ <header> <nav .navbar .navbar-expand-lg .navbar-dark.bg-dark> $maybe title <- appTitle $ appSettings master - <a .navbar-brand href=@{HomeR}>#{title} + <a .navbar-brand rel="home" href=@{HomeR}>#{title} <button type="button" .navbar-toggler data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar" aria-label="Toggle navigation"> <span .navbar-toggler-icon> @@ -31,4 +31,4 @@ $with Package { packageName = n, packageVersion = v, packageRepository = r } <- package <p> powered by # - <a href="#{repositoryUrl r}/tree/v#{v}">#{n} #{v} + <a rel="code-repository" href="#{repositoryUrl r}/tree/v#{v}">#{n} #{v}