Add published date metadata to posts.
This commit is contained in:
parent
959c68125e
commit
ec1167155d
|
@ -3,6 +3,10 @@
|
|||
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block head %}
|
||||
<meta property="og:article:published_time" content="{{ publishedDate.toISOString() }}" />
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<main id="main">
|
||||
<section id="post">
|
||||
|
|
|
@ -136,6 +136,7 @@ async function entry(): Promise<void> {
|
|||
year: Number(year)
|
||||
},
|
||||
pluralize,
|
||||
publishedDate: new Date(Number(year), monthNumber, 0, 12, 0, 0),
|
||||
statistic
|
||||
}
|
||||
);
|
||||
|
|
Reference in New Issue