summaryrefslogtreecommitdiff
path: root/source/rss.js
diff options
context:
space:
mode:
authorMhykol <mchaeldonald62@pm.me>2024-08-09 05:28:20 -0400
committerMhykol <mchaeldonald62@pm.me>2024-08-09 05:28:20 -0400
commit7999605a0861cb10b2e181a53f09f66cfdedffea (patch)
treec1812600a47684ae46b0813b616af41b0cc0f260 /source/rss.js
parent173f7e944f8728e71439954eb2427eb29062388c (diff)
Update rss.js
Diffstat (limited to 'source/rss.js')
-rw-r--r--source/rss.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/source/rss.js b/source/rss.js
index 175a8c1..d41c9eb 100644
--- a/source/rss.js
+++ b/source/rss.js
@@ -29,12 +29,14 @@ class RSS {
})
blogs.forEach(value => {
- feed.item({
- title: value.title,
- description: value.body,
- url: `${this.object.baseUrl}blog`,
- date: value.date
- })
+ if (value.date < new Date()) {
+ feed.item({
+ title: value.title,
+ description: value.body,
+ url: `${this.object.baseUrl}blog`,
+ date: value.date
+ })
+ }
})
return feed.xml({ident: true})
})