diff options
author | Go <monkeywzr@gmail.com> | 2021-07-05 11:34:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-05 11:34:25 +0300 |
commit | 9409fd2a557d485e5885f501fcc6e620dcaf770c (patch) | |
tree | dabced316d7bc02fb3ee2494e0970010f5e59b91 | |
parent | f42b9b53a4b84a4f04c7cef2fb062ffead16faba (diff) | |
parent | e2ccfddac1f6c343a4bfb72246a64456b78a8a35 (diff) |
Merge pull request #10 from Nizzlay/canonical
Add canonical tag for improved SEO (and prevents duplicate content if…
-rw-r--r-- | layouts/partials/head.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 392f0f1..fe2f63b 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -2,6 +2,7 @@ <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>{{ if .IsPage }} {{ .Title }} | {{ end }}{{ .Site.Title }}</title> + <link rel = 'canonical' href = '{{ .Permalink }}'> {{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }} <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="robots" content="all,follow"> |