diff options
Diffstat (limited to 'layouts/partials/ld/post.html')
| -rw-r--r-- | layouts/partials/ld/post.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/layouts/partials/ld/post.html b/layouts/partials/ld/post.html new file mode 100644 index 0000000..c4d0ae4 --- /dev/null +++ b/layouts/partials/ld/post.html @@ -0,0 +1,26 @@ +<script type="application/ld+json"> + { + "@context": "http://schema.org", + "@type": "BlogPosting", + "@id": {{ printf "%s" .Page.Permalink }}, + "url": {{ printf "%s" .Page.Permalink }}, + "headline": {{ printf "%s" .Title | safeJS }}, + {{- with .Params.summary -}} + "description": {{ printf "%s" . | safeJS }}, + {{- end }} + {{ with .Params.date -}} + "datePublished": {{ time.Format "2006-01-02T15:04:05-07:00" . }}, + {{- end }} + "author": { + "@type": "Person", + "url": "https://www.costas.dev/me", + "name": "Ariel Costas Guerrero" + }, + "creator": { + "@type": "Person", + "url": "https://www.costas.dev/me", + "name": "Ariel Costas Guerrero" + }, + "inLanguage": "{{ with .Params.lang }}{{ . }}{{ else }}es{{ end }}" + } +</script>
\ No newline at end of file |
