1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-27 15:56:23 -04:00
2021-05-20 10:33:59 -04:00

30 lines
1.1 KiB
HTML

{{- with .Site.Author -}}
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Person",
"@id": {{ print (absURL "/") "#author" }},
"name": {{ .name }},
"url": {{ $.Site.BaseURL }},
"description": {{ $.Site.Params.description }},{{ with $.Scratch.Get "authorImage" }}
"image": {
"@type": "ImageObject",
"url": {{ .Permalink }},
"width": "{{ .Width }}",
"height": "{{ .Height }}"
},{{ end }}
"sameAs": [
{{ $.Site.BaseURL }},{{ with .social }}
{{ with .github }}{{ print "https://github.com/" . }},{{ end }}
{{ with .keybase }}{{ print "https://keybase.io/" . }},{{ end }}
{{ with .twitter }}{{ print "https://twitter.com/" . }},{{ end }}
{{ with .medium }}{{ print "https://medium.com/@" . }},{{ end }}
{{ with .linkedin }}{{ print "https://www.linkedin.com/in/" . "/" }},{{ end }}
{{ with .facebook }}{{ print "https://www.facebook.com/" . }},{{ end }}
{{ with .instagram }}{{ print "https://www.instagram.com/" . "/" }},{{ end }}
{{ with .mastodon }}{{ print "https://" . }}{{ end }}{{ end }}
]
}
</script>
{{- end -}}