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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
| {{ if .IsHome }}
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"name": "Ajulu's Thoughts",
"url": "https://ajulusthoughts.stephenajulu.com",
"description": "Tech, Lifestyle, Cybersecurity, Finance, Design, Dev Among Other Thoughts with Ajulu.",
"thumbnailUrl": "https://ajulusthoughts.stephenajulu.com/logo.png"
}
</script>
{{ end }}
{{ if eq .Section "post" }}
<script type="application/ld+json">
{
"@context":"http://schema.org",
"@type": "BlogPosting",
"image": "{{ .Params.hero | absURL }}",
"url": "{{ .Permalink }}",
"headline": "{{ .Title }}",
"alternativeHeadline": "{{ .Title }}",
"dateCreated": {{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }},
"datePublished": {{ .PublishDate.Format "2006-01-02T15:04:05-07:00" | safeHTML }},
"dateModified": {{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }},
"inLanguage": "{{ .Site.LanguageCode }}",
"isFamilyFriendly": "true",
"copyrightYear": "{{ .PublishDate.Format "2006" | safeHTML }}",
"copyrightHolder": "{{ .Site.Params.author }}",
"contentLocation": {
"@type": "Place",
"name": "Nairobi, Kenya"
},
"accountablePerson": {
"@type": "Person",
"name": "Stephen Ajulu",
"url": "https://stephenajulu.com"
},
"author": {
"@type": "Person",
"name": "Stephen Ajulu",
"url": "https://stephenajulu.com"
},
"creator": {
"@type": "Person",
"name": "Stephen Ajulu",
"url": "https://stephenajulu.com"
},
"publisher": {
"@type": "Organization",
"name": "Ajulu's Thoughts",
"url": "https://ajulusthoughts.stephenajulu.com",
"logo": {
"@type": "ImageObject",
"url": "https://ajulusthoughts2-1.netlify.app/logo.png",
}
},
"mainEntityOfPage": "True",
"articleBody": "{{ .Content | safeJS | htmlUnescape | plainify }}"
}
</script>
{{ end }}
{{ if .IsPage }}
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebPage",
"name": "{{ .Title }}",
"description": {{ .Summary }},
"publisher": {
"@type": "ProfilePage",
"name": "Stephen Ajulu"
}
}
</script>
{{ end }}
|