Fix Twitter/JSON-LD timestamps (remove time/tz info) (#298)

This commit is contained in:
Eliot Partridge 2021-01-18 19:43:03 -06:00 committed by GitHub
parent dc48c5e5dc
commit 8b2b647257
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View File

@ -9,7 +9,7 @@
<meta name="twitter:card" content="summary" /> <meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@@theprincessxena" /> <meta name="twitter:site" content="@@theprincessxena" />
<meta name="twitter:title" content="@post.front_matter.title" /> <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 --> <!-- Facebook -->
<meta property="og:type" content="website" /> <meta property="og:type" content="website" />
@ -29,7 +29,7 @@
"headline": "@post.front_matter.title", "headline": "@post.front_matter.title",
"image": "https://christine.website/static/img/avatar.png", "image": "https://christine.website/static/img/avatar.png",
"url": "https://christine.website/@post.link", "url": "https://christine.website/@post.link",
"datePublished": "@post.date", "datePublished": "@post.date.format("%Y-%m-%d")",
"mainEntityOfPage": @{ "mainEntityOfPage": @{
"@@type": "WebPage", "@@type": "WebPage",
"@@id": "https://christine.website/@post.link" "@@id": "https://christine.website/@post.link"

View File

@ -9,7 +9,7 @@
<meta name="twitter:card" content="summary" /> <meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@@theprincessxena" /> <meta name="twitter:site" content="@@theprincessxena" />
<meta name="twitter:title" content="@post.front_matter.title" /> <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 --> <!-- Facebook -->
<meta property="og:type" content="website" /> <meta property="og:type" content="website" />
@ -29,7 +29,7 @@
"headline": "@post.front_matter.title", "headline": "@post.front_matter.title",
"image": "https://christine.website/static/img/avatar.png", "image": "https://christine.website/static/img/avatar.png",
"url": "https://christine.website/@post.link", "url": "https://christine.website/@post.link",
"datePublished": "@post.date", "datePublished": "@post.date.format("%Y-%m-%d")",
"mainEntityOfPage": @{ "mainEntityOfPage": @{
"@@type": "WebPage", "@@type": "WebPage",
"@@id": "https://christine.website/@post.link" "@@id": "https://christine.website/@post.link"

View File

@ -10,7 +10,7 @@
<p> <p>
<ul> <ul>
@for post in posts { @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> </ul>
</p> </p>

View File

@ -9,7 +9,7 @@
<meta name="twitter:card" content="summary" /> <meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@@theprincessxena" /> <meta name="twitter:site" content="@@theprincessxena" />
<meta name="twitter:title" content="@post.front_matter.title" /> <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 --> <!-- Facebook -->
<meta property="og:type" content="website" /> <meta property="og:type" content="website" />
@ -29,7 +29,7 @@
"headline": "@post.front_matter.title", "headline": "@post.front_matter.title",
"image": "https://christine.website/static/img/avatar.png", "image": "https://christine.website/static/img/avatar.png",
"url": "https://christine.website/@post.link", "url": "https://christine.website/@post.link",
"datePublished": "@post.date", "datePublished": "@post.date.format("%Y-%m-%d")",
"mainEntityOfPage": @{ "mainEntityOfPage": @{
"@@type": "WebPage", "@@type": "WebPage",
"@@id": "https://christine.website/@post.link" "@@id": "https://christine.website/@post.link"