fix og description
This commit is contained in:
parent
1109a6bbf6
commit
931aa8e48f
@ -14,7 +14,7 @@
|
||||
|
||||
<meta property="og:title" content="{{.Params.Title}}">
|
||||
|
||||
{{if isset .Params "tags"}}
|
||||
{{if or (isset .Params "tags") (isset .Params "topic") (isset .Params "series") }}
|
||||
<meta property="og:type" content="article">
|
||||
{{else}}
|
||||
<meta property="og:type" content="website">
|
||||
@ -22,7 +22,10 @@
|
||||
|
||||
{{if isset .Params "description"}}
|
||||
<meta property="og:description" content="{{ .Params.description | safeHTML}}">
|
||||
{{else}}
|
||||
<meta property="og:description" content="{{ .Summary | safeHTML }}">
|
||||
{{end}}
|
||||
|
||||
<meta property="og:url" content="{{.Permalink}}">
|
||||
|
||||
<meta name="description" content="{{ if .IsNode }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ else }}{{ with .Description }}{{ . }}{{ end }}{{ end }}">
|
||||
|
Loading…
Reference in New Issue
Block a user