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: 85d68987a4a33cd3d79d15125e57305ace4dfc85 (plain)
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 | humanize | 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 }}
  ]
}