meta-schema.html 1.46 KB
Newer Older
1
2
<!-- From Indiego partials/micro-schema.html https://github.com/growdigital/indiego/blob/master/themes/indiegomin/layouts/partials/micro-schema.html -->
<!-- Schema.org markup -->
3
4
{{ if .IsHome }}
<meta itemprop="headline" content="{{ .Site.Title }}">
5
6
{{ else if .Params.meta_title }}
<meta itemprop="headline" content="{{ .Params.meta_title }}">
7
{{ else }}
8
<meta itemprop="headline" content="{{ .Title }}">
9
{{ end }}
10
11
12
{{ if .Params.Description }}
<meta itemprop="description" content="{{ .Params.description }}">
{{ else }}
13
<meta itemprop="description" content="{{ .Summary }}">
14
{{ end }}
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<meta itemprop="image" content="{{ .Site.BaseURL }}{{ .Params.image }}">
<meta itemprop="image" content="{{ .Site.BaseURL }}{{ .Site.Params.publisherLogo }}">
{{ if eq .Type "news" }}
<meta itemprop="author" content="{{ .Params.author }}">
{{ else if eq .Type "videos" }}
<meta itemprop="author" content="{{ .Params.speaker }}">
{{ else }}
<meta itemprop="author" content="{{ .Site.Params.publisher }}">
{{ end }}
<div itemprop="publisher" itemscope itemtype="https://schema.org/Organization">
    <div itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
        <meta itemprop="url" content="{{ .Site.BaseURL }}/{{ .Site.Params.publisherLogo }}">
        <meta itemprop="width" content="{{ .Site.Params.publisherLogoWidth }}">
        <meta itemprop="height" content="{{ .Site.Params.publisherLogoHeight }}">
    </div>
    <meta itemprop="name" content="{{ .Site.Params.publisher }}">
</div>