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
|
{
"@context": "http://schema.org",
"@type": "Blog",
"url": "{{ .Permalink }}",
"headline": "{{ .Title }} - {{ .Site.Title }}",
"description": "{{ .Site.Params.description }}",
"author": {
"@type": "Person",
"name": "{{ .Site.Author.name }}",
{{ with .Site.GetPage "/about" }}
"url": "{{ .Permalink }}"
{{ end }}
},
"blogPost": [
{{ range $index, $page := .Pages }}
{{ if $index }},{{ end }}
{
"@type": "BlogPosting",
"headline": "{{ $page.Title }}",
"url": "{{ $page.Permalink }}",
"datePublished": "{{ $page.PublishDate.Format "2006-01-02" }}",
"description": "{{ $page.Description }}"
}
{{ end }}
]
}
|