aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/blogpost.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/blogpost.html b/templates/blogpost.html
index fb87f17..f0549ff 100644
--- a/templates/blogpost.html
+++ b/templates/blogpost.html
@@ -15,6 +15,29 @@
<!-- Description -->
<meta name="description" content="{{ .Title }} - Christine Dodrill's Blog" />
<meta name="author" content="Christine Dodrill">
+
+<script type="application/ld+json">
+ {
+ "@context": "http://schema.org",
+ "@type": "Article",
+ "headline": "{{ .Title }}",
+ "image": "https://christine.website/static/img/avatar.png",
+ "url": "https://christine.website/{{ .Link }}",
+ "datePublished": "{{ .Date }}",
+ "mainEntityOfPage": {
+ "@type": "WebPage",
+ "@id": "https://christine.website/{{ .Link }}"
+ },
+ "author": {
+ "@type": "Person",
+ "name": "Christine Dodrill"
+ },
+ "publisher": {
+ "@type": "Person",
+ "name": "Christine Dodrill"
+ }
+ }
+</script>
{{ end }}
{{ define "content" }}