RSS Feed!

This commit is contained in:
etherware-novice 2024-08-01 16:26:04 -05:00
parent 8086ae3f19
commit 62e9235e66
No known key found for this signature in database
GPG Key ID: 5DB73B4D57B9D701
6 changed files with 39 additions and 0 deletions

View File

@ -16,6 +16,8 @@ gem "minima", "~> 2.5"
# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.12"
gem "jekyll-sitemap"
gem "jekyll-file-size"
end
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem

View File

@ -36,10 +36,13 @@ GEM
webrick (~> 1.7)
jekyll-feed (0.17.0)
jekyll (>= 3.7, < 5.0)
jekyll-file-size (0.0.7)
jekyll-sass-converter (3.0.0)
sass-embedded (~> 1.54)
jekyll-seo-tag (2.8.0)
jekyll (>= 3.8, < 5.0)
jekyll-sitemap (1.4.0)
jekyll (>= 3.7, < 5.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
kramdown (2.4.0)
@ -80,6 +83,8 @@ DEPENDENCIES
http_parser.rb (~> 0.6.0)
jekyll (~> 4.3.3)
jekyll-feed (~> 0.12)
jekyll-file-size
jekyll-sitemap
minima (~> 2.5)
tzinfo (>= 1, < 3)
tzinfo-data

View File

@ -14,3 +14,5 @@ defaults:
type: "comic"
values:
layout: "comic"
url: https://abslimeware.neocities.org

View File

@ -1,4 +1,8 @@
<a href="/">back</a><br><br>
<a href="/assets/rss/comic.xml">
<img src="/assets/images/blinkers/rss.png" />
RSS
</a>
{% for post in site.comic %}
{% if post.title == "comic index" %}
{% continue %}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

26
assets/rss/comic.xml Normal file
View File

@ -0,0 +1,26 @@
---
layout: null
---
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>slime pond comics</title>
<link>https://abslimeware.neocities.org</link>
<description>a very slimy themed comic
FEED MAY BE BUGGY
</description>
{% for post in site.comic reversed limit:10 %}
<item>
<title>{{ post.title | downcase }}</title>
<link>{{ post.url | absolute_url }}</link>
<guid>{{ post.url }}</guid>
<pubDate>{{ post.date | date_to_xmlscema }}</pubDate>
<description>Click to add description..</description>
{% capture fullimg %}/assets/images/{{ post.image }}{% endcapture %}
<enclosure url="{{ fullimg | absolute_url }}"
length="{{ fullimg | prepend: '.' | file_size }}"
type="image/png" />
</item>
{% endfor %}
</channel>
</rss>