Bauke/tildes-issue-log
Bauke
/
tildes-issue-log
Archived
1
Fork 0

Add published date metadata to posts.

This commit is contained in:
Bauke 2020-03-01 00:49:56 +01:00
parent 959c68125e
commit ec1167155d
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
2 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,10 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block head %}
<meta property="og:article:published_time" content="{{ publishedDate.toISOString() }}" />
{% endblock %}
{% block body %} {% block body %}
<main id="main"> <main id="main">
<section id="post"> <section id="post">

View File

@ -136,6 +136,7 @@ async function entry(): Promise<void> {
year: Number(year) year: Number(year)
}, },
pluralize, pluralize,
publishedDate: new Date(Number(year), monthNumber, 0, 12, 0, 0),
statistic statistic
} }
); );