Welcome to mirror list, hosted at ThFree Co, Russian Federation.

blog-jsonld.html « partials « layouts - github.com/humrochagf/colordrop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 04e438f343001a208167d8ead8fbfd88809ddf08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
  "@context": "http://schema.org",
  "@type": "Blog",
  "author": {
    "@type": "Person",
    "name": "{{ .Site.Params.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" }}"
      }
    {{ end }}
  ]
}