aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2019-02-13 07:18:39 -0800
committerChristine Dodrill <me@christine.website>2019-02-13 07:18:39 -0800
commita87c90cedf00e1d562c0f3c9dc57ada360b01ab2 (patch)
tree4b9764f446131ab4933ec5b3b6acbc89d973d089
parent01df196e0ec32bc3046feeb896cfe47e0713b311 (diff)
downloadxesite-a87c90cedf00e1d562c0f3c9dc57ada360b01ab2.tar.xz
xesite-a87c90cedf00e1d562c0f3c9dc57ada360b01ab2.zip
templates/blogpost: json-LD
-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" }}