mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-29 19:20:39 +02:00
fixed RSS ordering
This commit is contained in:
@@ -38,7 +38,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-11-22T18:06:08+00:00" />
|
||||
<meta property="og:updated_time" content="2020-11-22T18:19:03+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" />
|
||||
|
@@ -41,7 +41,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-11-22T18:06:08+00:00" />
|
||||
<meta property="og:updated_time" content="2020-11-22T18:19:03+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" />
|
||||
|
@@ -34,7 +34,7 @@
|
||||
<meta property="og:locale" content="en-GB" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:published_time" content="Thu Sep 17 2020 17:00:00 +00:00" />
|
||||
<meta property="og:updated_time" content="Sun Nov 22 2020 10:06:08 +00:00" />
|
||||
<meta property="og:updated_time" content="Sun Nov 22 2020 10:19:03 +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" />
|
||||
|
@@ -34,7 +34,7 @@
|
||||
<meta property="og:locale" content="en-GB" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:published_time" content="Sat Nov 21 2020 16:00:00 +00:00" />
|
||||
<meta property="og:updated_time" content="Sun Nov 22 2020 10:06:08 +00:00" />
|
||||
<meta property="og:updated_time" content="Sun Nov 22 2020 10:19:03 +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:description" content="" />
|
||||
<meta property="og:locale" content="en-GB" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:published_time" content="Sun Nov 22 2020 10:06:08 GMT-0800 (Pacific Standard Time)" />
|
||||
<meta property="og:published_time" content="Sun Nov 22 2020 10:19:03 GMT-0800 (Pacific Standard 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>Sun Nov 22 2020 10:06:08 +00:00</lastBuildDate>
|
||||
<lastBuildDate>Sun Nov 22 2020 10:19:03 +00:00</lastBuildDate>
|
||||
<image>
|
||||
<url>https://pomax.github.io/bezierinfo/images/og-image.png</url>
|
||||
<title>A Primer on Bézier Curves</title>
|
||||
@@ -14,6 +14,18 @@
|
||||
</image>
|
||||
|
||||
<item>
|
||||
<title>Curve-circle intersections</title>
|
||||
<link>https://pomax.github.io/bezierinfo/news/2020-11-22.html</link>
|
||||
<description>
|
||||
|
||||
<p>While the primer covered line/line, line/curve, and curve/curve intersections, there was one other obvious intersection conspicuously missing: circle/curve intersections. You'd think those were just an extension on the maths used for the other three, but unfortunately, this is not the case. Rather than using calculus, the only real way to determine where a polynomial curve intersects it is to sample the curve at a resolution high enough to find you intervals on the curve where there likely is an intersection, then refining that interval until you find actual intersections.</p>
|
||||
<p>It is, in fact, rather similar to <a href="https://pomax.github.io/bezierinfo/#projections">projecting a point onto a bezier curve</a> where the point is the circle's center, and where the projection distance actually needs to match the circle radius, so: <a href="https://pomax.github.io/bezierinfo/#circleintersection">let's see how to do that</a>!</p>
|
||||
<p>— <a href="https://twitter.com/TheRealPomax">Pomax</a></p>
|
||||
|
||||
</description>
|
||||
<pubDate>Sat Nov 21 2020 16:00:00 +00:00</pubDate>
|
||||
<guid>2020-11-22.html</guid>
|
||||
</item><item>
|
||||
<title>Rewriting the tech stack</title>
|
||||
<link>https://pomax.github.io/bezierinfo/news/2020-09-18.html</link>
|
||||
<description>
|
||||
@@ -109,18 +121,6 @@ draw() {
|
||||
</description>
|
||||
<pubDate>Thu Sep 17 2020 17:00:00 +00:00</pubDate>
|
||||
<guid>2020-09-18.html</guid>
|
||||
</item><item>
|
||||
<title>Curve-circle intersections</title>
|
||||
<link>https://pomax.github.io/bezierinfo/news/2020-11-22.html</link>
|
||||
<description>
|
||||
|
||||
<p>While the primer covered line/line, line/curve, and curve/curve intersections, there was one other obvious intersection conspicuously missing: circle/curve intersections. You'd think those were just an extension on the maths used for the other three, but unfortunately, this is not the case. Rather than using calculus, the only real way to determine where a polynomial curve intersects it is to sample the curve at a resolution high enough to find you intervals on the curve where there likely is an intersection, then refining that interval until you find actual intersections.</p>
|
||||
<p>It is, in fact, rather similar to <a href="https://pomax.github.io/bezierinfo/#projections">projecting a point onto a bezier curve</a> where the point is the circle's center, and where the projection distance actually needs to match the circle radius, so: <a href="https://pomax.github.io/bezierinfo/#circleintersection">let's see how to do that</a>!</p>
|
||||
<p>— <a href="https://twitter.com/TheRealPomax">Pomax</a></p>
|
||||
|
||||
</description>
|
||||
<pubDate>Sat Nov 21 2020 16:00:00 +00:00</pubDate>
|
||||
<guid>2020-11-22.html</guid>
|
||||
</item>
|
||||
</channel>
|
||||
</rss>
|
||||
|
@@ -39,7 +39,7 @@
|
||||
<meta property="og:locale" content="uk-UA" />
|
||||
<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-11-22T18:06:08+00:00" />
|
||||
<meta property="og:updated_time" content="2020-11-22T18:19:03+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" />
|
||||
|
@@ -41,7 +41,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-11-22T18:06:08+00:00" />
|
||||
<meta property="og:updated_time" content="2020-11-22T18:19:03+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" />
|
||||
|
@@ -100,7 +100,11 @@ function generateNewsIndex(details) {
|
||||
function generateRSSFeed(details) {
|
||||
const now = new Date().toString();
|
||||
const renderContext = {
|
||||
items: details,
|
||||
items: details.sort((a, b) => {
|
||||
a = a.filename;
|
||||
b = b.filename;
|
||||
return a < b ? 1 : b < a ? -1 : 0;
|
||||
}),
|
||||
buildDate: `${now.substring(0, now.indexOf(`GMT`) - 1)} +00:00`,
|
||||
};
|
||||
const index = nunjucks.render(`rss.template.xml`, renderContext);
|
||||
|
Reference in New Issue
Block a user