Add support for canonical links (#1001)
Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
This commit is contained in:
parent
bc67ca1187
commit
2f670db6a0
2 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,8 @@
|
|||
{{ define "header" }}
|
||||
<meta name="description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ .Title }}{{ end }}" />
|
||||
{{ with .Params.relcanonical }}
|
||||
<link rel="canonical" href="{{ . | relLangURL }}" itemprop="url" />
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "navbar" }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue