diff --git a/config/filters/index.js b/config/filters/index.js index bb3c82f8..0f4bf77e 100644 --- a/config/filters/index.js +++ b/config/filters/index.js @@ -59,8 +59,9 @@ export default { // posts filterByPostType: (posts, postType) => { - if (postType === 'featured') return posts.reverse().filter(post => post.data.featured === true).splice(0, 3) - return posts.splice(0, 5) + const postData = [...posts] + if (postType === 'featured') return postData.reverse().filter(post => post.data.featured === true).splice(0, 3) + return postData.splice(0, 5) }, truncateByWordCount: (text, wordCount) => { const words = sanitizeHtml(text, { allowedTags: ['']}).split(/\s+/); diff --git a/package.json b/package.json index 77157c0c..a4877543 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "13.6.1", + "version": "13.6.2", "description": "The source for my personal site. Built using 11ty.", "type": "module", "scripts": { diff --git a/src/feeds/feed.liquid b/src/feeds/feed.liquid index 2de859b1..42275eeb 100644 --- a/src/feeds/feed.liquid +++ b/src/feeds/feed.liquid @@ -3,7 +3,7 @@ layout: null eleventyExcludeFromCollections: true permalink: /feeds/posts --- -{%- assign posts = collections.posts -%} +{%- assign posts = collections.posts | reverse -%} {% render "partials/feeds/rss.liquid" permalink:"/feeds/posts" title:"Cory Dransfeldt"