Skip to content

Commit

Permalink
Merge pull request #134 from silvanocerza/canonical-url
Browse files Browse the repository at this point in the history
Add canonical URL link in header.html
  • Loading branch information
htr3n committed Apr 19, 2021
2 parents 50558ed + 4faf3de commit 14b387e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions layouts/partials/header.html
@@ -1,5 +1,10 @@
<head>
<link href="https://gmpg.org/xfn/11" rel="profile">
{{ if .Params.canonicalUrl }}
<link rel="canonical" href="{{ .Params.canonicalUrl }}">
{{ else }}
<link rel="canonical" href="{{ .Permalink }}">
{{ end }}
{{ partial "header/meta.html" . }}
{{ partial "header/styles.html" . }}
{{ `<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
Expand Down

0 comments on commit 14b387e

Please sign in to comment.