Добавлен meta description
This commit is contained in:
parent
c50148c510
commit
eae4ae30f6
@ -1,6 +1,7 @@
|
||||
{{ define "head_meta" }}
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:title" content="{{ .Title }}" />
|
||||
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}"/>
|
||||
<meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" />
|
||||
<meta property="og:url" content="{{ .Permalink }}" />
|
||||
{{ with .PublishDate }}<meta property="article:published_time" {{ .Format "2006-01-02T15:04:05-07:00" | printf "content=%q" | safeHTMLAttr }} />{{ end }}
|
||||
|
Loading…
Reference in New Issue
Block a user