Change the published date to be noon on the last day of the month.
This commit is contained in:
parent
ec1167155d
commit
0b5bee91bc
|
@ -56,7 +56,7 @@ export async function generateFeeds(allPosts: PostList[]): Promise<void> {
|
||||||
months[post.month]
|
months[post.month]
|
||||||
}.html`;
|
}.html`;
|
||||||
|
|
||||||
const date = new Date(year.year, post.month, 0, 23, 59, 59);
|
const date = new Date(year.year, post.month, 0, 12, 0, 0);
|
||||||
|
|
||||||
const html: string = await fsp.readFile(
|
const html: string = await fsp.readFile(
|
||||||
join(__dirname, `../../public/${year.year}/${months[post.month]}.html`),
|
join(__dirname, `../../public/${year.year}/${months[post.month]}.html`),
|
||||||
|
|
Reference in New Issue