Add published date metadata to posts.
This commit is contained in:
parent
959c68125e
commit
ec1167155d
|
@ -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">
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Reference in New Issue