Add other RSS feeds
This commit is contained in:
parent
67f54b7c02
commit
ee00ac3429
5 changed files with 64 additions and 2 deletions
15
blog/feed.xml
Normal file
15
blog/feed.xml
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<rss version="2.0">
|
||||
|
||||
<channel>
|
||||
<title>askiiart.net blog</title>
|
||||
<description>The feed for askiiart.net but just the blog, I guess</description>
|
||||
<link>https://askiiart.net/blog/</link>
|
||||
<lastBuildDate>Sun, 15 Oct 2023 17:38:30 +0000</lastBuildDate>
|
||||
<item>
|
||||
<title>Marlin Boot Animations</title>
|
||||
<link>https://askiiart.net/til/marlin-boot-animations.html</link>
|
||||
</item>
|
||||
|
||||
</channel>
|
||||
</rss>
|
2
feed.xml
2
feed.xml
|
@ -5,7 +5,7 @@
|
|||
<title>askiiart.net</title>
|
||||
<description>The feed for askiiart.net, I guess</description>
|
||||
<link>https://askiiart.net</link>
|
||||
<lastBuildDate>Sun, 15 Oct 2023 17:10:25 +0000</lastBuildDate>
|
||||
<lastBuildDate>Sun, 15 Oct 2023 17:38:30 +0000</lastBuildDate>
|
||||
<item>
|
||||
<title>My Stack</title>
|
||||
<link>https://askiiart.net/stack.html</link>
|
||||
|
|
|
@ -15,3 +15,29 @@ find . -name "*.html" | while read -r item; do
|
|||
printf "\n <item>\n <title>${TITLE}</title>\n <link>https://askiiart.net/${item}.html</link>\n </item>" >>feed.xml
|
||||
done
|
||||
printf "\n\n</channel>\n</rss>" >>feed.xml
|
||||
|
||||
# same thing, but for TIL only
|
||||
cd ./til
|
||||
printf "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<rss version=\"2.0\">\n\n<channel>\n <title>askiiart.net TIL</title>\n <description>The feed for askiiart.net but just TIL, I guess</description>\n <link>https://askiiart.net/til/</link>\n <lastBuildDate>$(TZ='UTC' date --rfc-2822)</lastBuildDate>" >feed.xml
|
||||
find . -name "*.html" | while read -r item; do
|
||||
# Skip template.html, wishlist.html, resume.html, and portfolio.html
|
||||
item="${item%.*}"
|
||||
item="${item#./}"
|
||||
TITLE=$(grep -m 1 -oP '(?<=^# ).*' ${item}.md | cat)
|
||||
printf "\n <item>\n <title>${TITLE}</title>\n <link>https://askiiart.net/til/${item}.html</link>\n </item>" >>feed.xml
|
||||
done
|
||||
printf "\n\n</channel>\n</rss>" >>feed.xml
|
||||
cd ..
|
||||
|
||||
# same thing, but for blog only
|
||||
cd ./blog
|
||||
printf "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<rss version=\"2.0\">\n\n<channel>\n <title>askiiart.net blog</title>\n <description>The feed for askiiart.net but just the blog, I guess</description>\n <link>https://askiiart.net/blog/</link>\n <lastBuildDate>$(TZ='UTC' date --rfc-2822)</lastBuildDate>" >feed.xml
|
||||
find . -name "*.html" | while read -r item; do
|
||||
# Skip template.html, wishlist.html, resume.html, and portfolio.html
|
||||
item="${item%.*}"
|
||||
item="${item#./}"
|
||||
TITLE=$(grep -m 1 -oP '(?<=^# ).*' ${item}.md | cat)
|
||||
printf "\n <item>\n <title>${TITLE}</title>\n <link>https://askiiart.net/til/${item}.html</link>\n </item>" >>feed.xml
|
||||
done
|
||||
printf "\n\n</channel>\n</rss>" >>feed.xml
|
||||
cd ..
|
|
@ -25,6 +25,8 @@
|
|||
<p>...would instead become...</p>
|
||||
<div class="sourceCode" id="cb2"><pre
|
||||
class="language-bash"><code class="language-bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./docker-resources/manage.sh</span> mix pleroma.user invite</span></code></pre></div>
|
||||
<p>Other than those minor issues, you can just follow the
|
||||
docs.</p>
|
||||
<script src="/prism.js"></script>
|
||||
</body>
|
||||
<footer>
|
||||
|
|
19
til/feed.xml
Normal file
19
til/feed.xml
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<rss version="2.0">
|
||||
|
||||
<channel>
|
||||
<title>askiiart.net TIL</title>
|
||||
<description>The feed for askiiart.net but just TIL, I guess</description>
|
||||
<link>https://askiiart.net/til/</link>
|
||||
<lastBuildDate>Sun, 15 Oct 2023 17:38:30 +0000</lastBuildDate>
|
||||
<item>
|
||||
<title>Using JSON with docker compose</title>
|
||||
<link>https://askiiart.net/til/using-json-with-docker-compose.html</link>
|
||||
</item>
|
||||
<item>
|
||||
<title>Akkoma in Docker</title>
|
||||
<link>https://askiiart.net/til/akkoma-in-docker.html</link>
|
||||
</item>
|
||||
|
||||
</channel>
|
||||
</rss>
|
Loading…
Reference in a new issue