website: Added "canonical" tag
With this tag, a "canonical" or "prefered" version of the page may be
specified. This prevents duplicate content issues in search engine
optimization.
Usage:
```
---
layout: post
title: "An example blog post"
author: Anon
date: 2020-11-02
canonical: https://example.org/canon
categories: project
---
```
The above will insert
`<link rel="canonical" href="https://example.org/canon"/>` in the page's
<head>. This assumes the content on this page is a duplicate of
https://example.org/canon, and https://example.org/canon is the
preferred version.
Change-Id: I2932200b114223845d36ee6a05809fa8f8a7aace
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5-website/+/36915
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: Jason Lowe-Power <power.jg@gmail.com>
diff --git a/_includes/head.html b/_includes/head.html
index d043276..495697a 100755
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -17,6 +17,8 @@
gem5{% if page.title And page.title != "" And page.title != nil%}: {{page.title}} {% endif %}
</title>
+ {% if page.canonical And page.canonical != "" And page.canonical != nil%}<link rel="canonical" href="{{page.canonical}}"/> {% endif %}
+
<!-- SITE FAVICON -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">