-
Notifications
You must be signed in to change notification settings - Fork 156
/
seo.html
29 lines (29 loc) · 1.06 KB
/
seo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "BlogPosting",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "{{ .Site.BaseURL }}"
},
"articleSection" : "{{ .Section }}",
"name" : "{{ .Title }}",
"headline" : "{{ .Title }}",
{{ if .IsHome -}}
"description" : "{{ .Site.Params.description | plainify }}",
{{- else -}}
"description" : "{{ default .Summary .Description | plainify }}",
{{- end }}
"inLanguage" : "en-US",
"author" : "{{ .Site.Author.name }}",
"creator" : "{{ .Site.Author.name }}",
"publisher": "{{ .Site.Author.name }}",
"accountablePerson" : "{{ .Site.Author.name }}",
"copyrightHolder" : "{{ .Site.Author.name }}",
"copyrightYear" : "{{ .Date.Format "2006" }}",
"datePublished": "{{ .Date }}",
"dateModified" : "{{ .Date }}",
"url" : "{{ .Permalink }}",
"keywords" : [ {{ if isset .Params "tags" }}{{ range .Params.tags }}"{{ . }}",{{ end }}{{ end }} ]
}
</script>