1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-26 14:38:30 -04:00
Jake Jarvis 363b4edf1c
shift asset processing to webpack (#424)
also migrated SASS to latest syntax (via dart-sass) and vastly simplified light/dark theme logic
2021-06-19 17:19:01 -04:00

30 lines
1.2 KiB
HTML

{{- with .Site.Author -}}
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Person",
"@id": {{ print $.Site.Params.baseURL $.Site.BaseURL "#author" }},
"name": {{ .name }},
"url": {{ print $.Site.Params.baseURL $.Site.BaseURL }},
"description": {{ $.Site.Params.description }},{{ with $.Scratch.Get "authorImage" }}
"image": {
"@type": "ImageObject",
"url": {{ print $.Site.Params.baseURL .Permalink }},
"width": "{{ .Width }}",
"height": "{{ .Height }}"
},{{ end }}
"sameAs": [
{{ print $.Site.Params.baseURL $.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 -}}