From 044b8e972023a4483923904a3642defddeb940b0 Mon Sep 17 00:00:00 2001 From: andwati Date: Sun, 8 Mar 2026 22:30:55 +0300 Subject: [PATCH 1/2] feat: add sitemap.xml template for SEO purposes --- templates/sitemap.xml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 templates/sitemap.xml diff --git a/templates/sitemap.xml b/templates/sitemap.xml new file mode 100644 index 0000000..cde68d6 --- /dev/null +++ b/templates/sitemap.xml @@ -0,0 +1,20 @@ + + + {% for sitemap_entry in entries %} + + {{ sitemap_entry.permalink | safe }} + {% if sitemap_entry.updated %} + {{ sitemap_entry.updated }} + {% elif sitemap_entry.date %} + {{ sitemap_entry.date }} + {% endif %} + {% if sitemap_entry.permalink == "https://pwnforfunandprofit.xyz/" %} + daily + 1.0 + {% else %} + weekly + 0.5 + {% endif %} + + {% endfor %} + From 6cb692af668317601c85a49316bc9aa39a4a0a2b Mon Sep 17 00:00:00 2001 From: andwati Date: Sun, 8 Mar 2026 22:39:30 +0300 Subject: [PATCH 2/2] feat: Add RSS feed generation with a custom XSLT stylesheet for improved readability. --- static/rss.xsl | 136 ++++++++++++++++++++++++++++++++++++++++++++++ templates/rss.xml | 23 ++++++++ zola.toml | 2 + 3 files changed, 161 insertions(+) create mode 100644 static/rss.xsl create mode 100644 templates/rss.xml diff --git a/static/rss.xsl b/static/rss.xsl new file mode 100644 index 0000000..7e55720 --- /dev/null +++ b/static/rss.xsl @@ -0,0 +1,136 @@ + + + + + + + <xsl:value-of select="/rss/channel/title"/> - RSS Feed + + + + + +
+

+

+
+ +
+ This is an RSS feed. Subscribe by copying the URL from your address bar into your news reader app. +
+ +
+ +
+

+ + + +

+
+ Published: +
+
+ ... +
+ Read article → +
+
+
+ + +
+
diff --git a/templates/rss.xml b/templates/rss.xml new file mode 100644 index 0000000..4ead774 --- /dev/null +++ b/templates/rss.xml @@ -0,0 +1,23 @@ + + + + + {{ config.title }} + {{ config.base_url }} + {{ config.description }} + Zola + {{ config.default_language | default(value="en") }} + + {{ last_updated | date(format="%a, %d %b %Y %H:%M:%S %z") }} + {% for page in pages %} + + {{ page.title }} + {{ page.date | date(format="%a, %d %b %Y %H:%M:%S %z") }} + {{ page.extra.author | default(value=config.extra.author) | default(value="Unknown") }} + {{ page.permalink | safe }} + {{ page.permalink | safe }} + {{ page.content }} + + {% endfor %} + + diff --git a/zola.toml b/zola.toml index 6f5ee6f..04bf91f 100644 --- a/zola.toml +++ b/zola.toml @@ -4,6 +4,8 @@ description = "Hacking the Narrative, One Byte at a Time." compile_sass = true build_search_index = true taxonomies = [ {name = "tags"} ] +generate_feeds = true +feed_filenames = ["rss.xml"] [markdown.highlighting] theme = "catppuccin-mocha"