aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/ld/post.html
diff options
context:
space:
mode:
authorAriel Costas Guerrero <94913521+arielcostas@users.noreply.github.com>2024-04-06 19:42:00 +0200
committerAriel Costas Guerrero <94913521+arielcostas@users.noreply.github.com>2024-04-06 19:42:00 +0200
commit56faea4956d0dbf05ad75bbafca81aa90d09771d (patch)
tree9e6eea64635685175fe4507b190fb9e3c02e7b82 /layouts/partials/ld/post.html
parent9ec92dfef9c73992e849279c62ced2f41a7e43b9 (diff)
Add ontology
Diffstat (limited to 'layouts/partials/ld/post.html')
-rw-r--r--layouts/partials/ld/post.html26
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