aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Partridge <byte@code.horse>2021-01-18 19:43:03 -0600
committerGitHub <noreply@github.com>2021-01-18 20:43:03 -0500
commit8b2b64725726b19d45ed7b4ef457eedc6a0b9f25 (patch)
tree3c3a2efe60356387157170f664d3a0ccf813cc63
parentdc48c5e5dc4a5b094fe61d0b616650e4959ad8cf (diff)
downloadxesite-8b2b64725726b19d45ed7b4ef457eedc6a0b9f25.tar.xz
xesite-8b2b64725726b19d45ed7b4ef457eedc6a0b9f25.zip
Fix Twitter/JSON-LD timestamps (remove time/tz info) (#298)
-rw-r--r--templates/blogpost.rs.html4
-rw-r--r--templates/gallerypost.rs.html4
-rw-r--r--templates/series_posts.rs.html2
-rw-r--r--templates/talkpost.rs.html4
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 @@
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@@theprincessxena" />
<meta name="twitter:title" content="@post.front_matter.title" />
-<meta name="twitter:description" content="Posted on @post.date" />
+<meta name="twitter:description" content="Posted on @post.date.format("%Y-%m-%d")" />
<!-- Facebook -->
<meta property="og:type" content="website" />
@@ -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 @@
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@@theprincessxena" />
<meta name="twitter:title" content="@post.front_matter.title" />
-<meta name="twitter:description" content="Posted on @post.date" />
+<meta name="twitter:description" content="Posted on @post.date.format("%Y-%m-%d")" />
<!-- Facebook -->
<meta property="og:type" content="website" />
@@ -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 @@
<p>
<ul>
@for post in posts {
- <li>@post.date - <a href="/@post.link">@post.front_matter.title</a></li>
+ <li>@post.date.format("%Y-%m-%d") - <a href="/@post.link">@post.front_matter.title</a></li>
}
</ul>
</p>
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 @@
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@@theprincessxena" />
<meta name="twitter:title" content="@post.front_matter.title" />
-<meta name="twitter:description" content="Posted on @post.date" />
+<meta name="twitter:description" content="Posted on @post.date.format("%Y-%m-%d")" />
<!-- Facebook -->
<meta property="og:type" content="website" />
@@ -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"