Merge pull request #209 from szpak/canonicalUrl

Use canonicalUrl parameter for canonical tag in meta headers
This commit is contained in:
zzossig 2020-02-28 09:04:12 +09:00 committed by GitHub
commit 209a2c0419
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -54,7 +54,11 @@
<meta name="msapplication-navbutton-color" content="{{ $.Scratch.Get "themeNavbarColor" | default "#fff" }}">
<!-- iOS Safari -->
<meta name="apple-mobile-web-app-status-bar-style" content="{{ $.Scratch.Get "themeNavbarColor" | default "#fff" }}">
{{ if $.Param "canonicalUrl" }}
<link rel="canonical" href="{{ $.Param "canonicalUrl" | absLangURL }}">
{{ else }}
<link rel="canonical" href="{{ .Permalink | absLangURL }}">
{{ end }}
<link rel="manifest" href="{{ "manifest.json" | relURL }}">
{{ if $.Site.Params.useFaviconGenerator }}
<link rel="apple-touch-icon" sizes="57x57" href="{{ "favicon/apple-icon-57x57.png" | relURL }}">