more seo cleanup
This commit is contained in:
parent
f8c1b54ccb
commit
fd90dd5ee8
|
@ -88,7 +88,7 @@
|
||||||
"author": {
|
"author": {
|
||||||
"@type": "Person",
|
"@type": "Person",
|
||||||
"name": {{ or .Params.author .Site.Params.author }},
|
"name": {{ or .Params.author .Site.Params.author }},
|
||||||
"url": {{ .Site.Home.Permalink }}
|
"url": {{ .Site.BaseURL }}
|
||||||
},
|
},
|
||||||
"datePublished": {{ .Date.UTC.Format "2006-01-02T03:04:05Z" }},
|
"datePublished": {{ .Date.UTC.Format "2006-01-02T03:04:05Z" }},
|
||||||
"description": {{ or .Description .Summary }},
|
"description": {{ or .Description .Summary }},
|
||||||
|
@ -100,8 +100,9 @@
|
||||||
"url": {{ with or $cover $icon }}{{ .Permalink | absURL }}{{ end }}
|
"url": {{ with or $cover $icon }}{{ .Permalink | absURL }}{{ end }}
|
||||||
},
|
},
|
||||||
"publisher": {
|
"publisher": {
|
||||||
"@type": "Person",
|
"@type": "WebSite",
|
||||||
"name": {{ or .Params.author .Site.Params.author .Site.Title }},
|
"name": {{ .Site.Title }},
|
||||||
|
"url": {{ .Site.BaseURL }},
|
||||||
"logo": {
|
"logo": {
|
||||||
"@type": "ImageObject",
|
"@type": "ImageObject",
|
||||||
"url": {{with $icon}}{{.Permalink}}{{else}}{{$staticIcon}}{{end}}
|
"url": {{with $icon}}{{.Permalink}}{{else}}{{$staticIcon}}{{end}}
|
||||||
|
@ -137,6 +138,9 @@
|
||||||
<link rel="sitemap" type="application/xml" title="Sitemap" href="{{ .Site.BaseURL }}sitemap.xml" />
|
<link rel="sitemap" type="application/xml" title="Sitemap" href="{{ .Site.BaseURL }}sitemap.xml" />
|
||||||
{{ with .OutputFormats.Get "RSS" -}}
|
{{ with .OutputFormats.Get "RSS" -}}
|
||||||
<link href="{{ .Permalink }}" rel="feed alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
|
<link href="{{ .Permalink }}" rel="feed alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
|
||||||
{{- end }}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/* robots */}}
|
||||||
|
{{- "<!-- robots -->" | safeHTML }}
|
||||||
<meta name="robots" content="index,follow" />
|
<meta name="robots" content="index,follow" />
|
||||||
<meta name="googlebot" content="index,follow" />
|
<meta name="googlebot" content="index,follow" />
|
Loading…
Reference in a new issue