mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-30 19:50:01 +02:00
rss field fixes
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
<meta property="og:locale" content="en-GB" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:published_time" content="2013-06-13T12:00:00+00:00" />
|
||||
<meta property="og:updated_time" content="2020-09-23T03:42:08+00:00" />
|
||||
<meta property="og:updated_time" content="2020-09-23T03:51:04+00:00" />
|
||||
<meta property="og:author" content="Mike 'Pomax' Kamermans" />
|
||||
<meta property="og:section" content="Bézier Curves" />
|
||||
<meta property="og:tag" content="Bézier Curves" />
|
||||
|
@@ -33,7 +33,7 @@
|
||||
<meta property="og:locale" content="ja-JP" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:published_time" content="2013-06-13T12:00:00+00:00" />
|
||||
<meta property="og:updated_time" content="2020-09-23T03:42:08+00:00" />
|
||||
<meta property="og:updated_time" content="2020-09-23T03:51:04+00:00" />
|
||||
<meta property="og:author" content="Mike 'Pomax' Kamermans" />
|
||||
<meta property="og:section" content="Bézier Curves" />
|
||||
<meta property="og:tag" content="Bézier Curves" />
|
||||
|
@@ -27,7 +27,7 @@
|
||||
<meta property="og:locale" content="en-GB" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:published_time" content="2020-09-18T12:00:00+00:00" />
|
||||
<meta property="og:updated_time" content="2020-09-23T03:42:08+00:00" />
|
||||
<meta property="og:updated_time" content="2020-09-23T03:51:04+00:00" />
|
||||
<meta property="og:author" content="Mike 'Pomax' Kamermans" />
|
||||
<meta property="og:section" content="Bézier Curves" />
|
||||
<meta property="og:tag" content="Bézier Curves" />
|
||||
|
@@ -26,7 +26,7 @@
|
||||
<meta property="og:description" content="" />
|
||||
<meta property="og:locale" content="en-GB" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:published_time" content="undefinedT12:00:00+00:00" />
|
||||
<meta property="og:published_time" content="Tue Sep 22 2020 20:51:04 GMT-0700 (Pacific Daylight Time)" />
|
||||
<meta property="og:updated_time" content="" />
|
||||
<meta property="og:author" content="Mike 'Pomax' Kamermans" />
|
||||
<meta property="og:section" content="Bézier Curves" />
|
||||
|
@@ -6,7 +6,7 @@
|
||||
<atom:link href="https://pomax.github.io/bezierinfo" rel="self"></atom:link>
|
||||
<description>News updates for the <a href="https://pomax.github.io/bezierinfo">primer on Bézier Curves</a> by Pomax</description>
|
||||
<language>en-GB</language>
|
||||
<lastBuildDate>undefinedT12:00:00+00:00</lastBuildDate>
|
||||
<lastBuildDate>Tue Sep 22 2020 20:51:04 GMT-0700 (Pacific Daylight Time)</lastBuildDate>
|
||||
<image>
|
||||
<url>https://pomax.github.io/bezierinfo/images/og-image.png</url>
|
||||
<title>A Primer on Bézier Curves</title>
|
||||
|
@@ -33,7 +33,7 @@
|
||||
<meta property="og:locale" content="zh-CN" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:published_time" content="2013-06-13T12:00:00+00:00" />
|
||||
<meta property="og:updated_time" content="2020-09-23T03:42:08+00:00" />
|
||||
<meta property="og:updated_time" content="2020-09-23T03:51:04+00:00" />
|
||||
<meta property="og:author" content="Mike 'Pomax' Kamermans" />
|
||||
<meta property="og:section" content="Bézier Curves" />
|
||||
<meta property="og:tag" content="Bézier Curves" />
|
||||
|
@@ -86,7 +86,7 @@ function generateNewsIndex(details) {
|
||||
base,
|
||||
details,
|
||||
locale,
|
||||
publishTime: `${details.postDate}T12:00:00+00:00`,
|
||||
publishTime: new Date(),
|
||||
};
|
||||
const index = nunjucks.render(`news.template.html`, renderContext);
|
||||
fs.writeFileSync(path.join(paths.news, `index.html`), index, `utf8`);
|
||||
@@ -98,7 +98,7 @@ function generateNewsIndex(details) {
|
||||
function generateRSSFeed(details) {
|
||||
const renderContext = {
|
||||
items: details,
|
||||
buildDate: `${details.postDate}T12:00:00+00:00`,
|
||||
buildDate: new Date(),
|
||||
};
|
||||
const index = nunjucks.render(`rss.template.xml`, renderContext);
|
||||
fs.writeFileSync(path.join(paths.news, `rss.xml`), index, `utf8`);
|
||||
|
Reference in New Issue
Block a user