Open carmebar opened 3 years ago
Thank you! I'm not sure how to do that with github pages right now, but I'll see what I can do to get it working, and thank you for the feedback!
Seems that you are currently creating the whole blog by hand. You could add a file at the root directory called rss.xml with the following content:
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<atom:link href="https://malicious.dev/rss.xml" rel="self" type="application/rss+xml" />
<title>malicious.dev</title>
<link>https://malicious.dev</link>
<description>Here Be Dragons</description>
<language>en-us</language>
<item>
<title>0x00 - A Foray For Fun into Windows Fibers</title>
<link>https://malicious.dev/0x00.html</link>
<pubDate>Thu, 17 Jun 2021 08:24:47 +0000</pubDate>
<author>alfarom256@emaildomain.com (alfarom256)</author>
<guid isPermaLink="true">https://malicious.dev/0x00.html</guid>
</item>
</channel>
</rss>
Each time a new blogpost (item) is finished you just need to add a new item. Like so:
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<atom:link href="https://malicious.dev/rss.xml" rel="self" type="application/rss+xml" />
<title>malicious.dev</title>
<link>https://malicious.dev</link>
<description>Here Be Dragons</description>
<language>en-us</language>
<item>
<title>0x00 - A Foray For Fun into Windows Fibers</title>
<link>https://malicious.dev/0x00.html</link>
<pubDate>Thu, 17 Jun 2021 08:24:47 +0000</pubDate>
<author>alfarom256@emaildomain.com (alfarom256)</author>
<guid isPermaLink="true">https://malicious.dev/0x00.html</guid>
</item>
<item>
<title>0x01 - Writing a hash-based loader in C++</title>
<link>https://malicious.dev/0x01.html</link>
<pubDate>Fri, 18 Jun 2021 08:24:47 +0000</pubDate>
<author>alfarom256@emaildomain.com (alfarom256)</author>
<guid isPermaLink="true">https://malicious.dev/0x01.html</guid>
</item>
</channel>
</rss>
You can check that your syntax is correct at: https://validator.w3.org/feed/#validate_by_input
To allow autodiscovery of the rss feed you should also add this tag in the HEAD of your HTML files:
<link rel="alternate" type="application/rss+xml" title="RSS Feed for malicious.dev" href="/rss.xml" />
If you need further assisantance I'd be glad to help you.
If you ever migrate to some static site generator like Jekyll (which is supported by GitHub by default) this task could be done automatically.
Keep up the good work, cheers!
Awesome, thank you a ton! I'll check out porting what I have to work with Jekyll. Much appreciated :) I'll close this once I have that working!
Loved your first article. Would be great to have an RSS feed so won't miss the following ones.
Thank you for sharing knowledge!