From 291fe33da7504ad26adcb075052cd997ee0b8e9d Mon Sep 17 00:00:00 2001
From: Eliot Partridge
Date: Mon, 18 Jan 2021 17:07:06 -0600
Subject: [PATCH] Fix Twitter/JSON-LD timestamps (remove time/tz info)
---
templates/blogpost.rs.html | 4 ++--
templates/gallerypost.rs.html | 4 ++--
templates/series_posts.rs.html | 2 +-
templates/talkpost.rs.html | 4 ++--
4 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/templates/blogpost.rs.html b/templates/blogpost.rs.html
index dd3a9da..6ac3c1e 100644
--- a/templates/blogpost.rs.html
+++ b/templates/blogpost.rs.html
@@ -9,7 +9,7 @@
-
+
@@ -29,7 +29,7 @@
"headline": "@post.front_matter.title",
"image": "https://christine.website/static/img/avatar.png",
"url": "https://christine.website/@post.link",
- "datePublished": "@post.date",
+ "datePublished": "@post.date.format("%Y-%m-%d")",
"mainEntityOfPage": @{
"@@type": "WebPage",
"@@id": "https://christine.website/@post.link"
diff --git a/templates/gallerypost.rs.html b/templates/gallerypost.rs.html
index c78ac7b..5f4c773 100644
--- a/templates/gallerypost.rs.html
+++ b/templates/gallerypost.rs.html
@@ -9,7 +9,7 @@
-
+
@@ -29,7 +29,7 @@
"headline": "@post.front_matter.title",
"image": "https://christine.website/static/img/avatar.png",
"url": "https://christine.website/@post.link",
- "datePublished": "@post.date",
+ "datePublished": "@post.date.format("%Y-%m-%d")",
"mainEntityOfPage": @{
"@@type": "WebPage",
"@@id": "https://christine.website/@post.link"
diff --git a/templates/series_posts.rs.html b/templates/series_posts.rs.html
index 327950c..f75f8e3 100644
--- a/templates/series_posts.rs.html
+++ b/templates/series_posts.rs.html
@@ -10,7 +10,7 @@
diff --git a/templates/talkpost.rs.html b/templates/talkpost.rs.html
index 771179c..10e624c 100644
--- a/templates/talkpost.rs.html
+++ b/templates/talkpost.rs.html
@@ -9,7 +9,7 @@
-
+
@@ -29,7 +29,7 @@
"headline": "@post.front_matter.title",
"image": "https://christine.website/static/img/avatar.png",
"url": "https://christine.website/@post.link",
- "datePublished": "@post.date",
+ "datePublished": "@post.date.format("%Y-%m-%d")",
"mainEntityOfPage": @{
"@@type": "WebPage",
"@@id": "https://christine.website/@post.link"