1
0
Fork 0

add rss page

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
Harald Hoyer 2023-10-26 10:12:05 +02:00
parent 9bfbbcc342
commit 5058099439
4 changed files with 68 additions and 3 deletions

View file

@ -4,5 +4,3 @@ set -ex
nix shell nixpkgs#zola -c zola build --force --output-dir /var/www/harald.hoyer.xyz/html nix shell nixpkgs#zola -c zola build --force --output-dir /var/www/harald.hoyer.xyz/html
chmod go-w -R /var/www/harald.hoyer.xyz/ chmod go-w -R /var/www/harald.hoyer.xyz/
#chgrp -R apache /var/www/virt/harryh/html/
#chcon -R -t httpd_sys_content_t /var/www/virt/harryh/html/

View file

@ -56,7 +56,7 @@ clean_blog_social = [
{url = "https://floss.social/@backslash", icon="fab fa-mastodon"}, {url = "https://floss.social/@backslash", icon="fab fa-mastodon"},
{url = "https://github.com/haraldh", icon="fab fa-github"}, {url = "https://github.com/haraldh", icon="fab fa-github"},
{url = "https://keybase.io/haraldhoyer/", icon="fab fa-keybase"}, {url = "https://keybase.io/haraldhoyer/", icon="fab fa-keybase"},
{url = "/rss.xml", icon="fas fa-rss"} {url = "/rss", icon="fas fa-rss"}
] ]

9
content/pages/rss.md Normal file
View file

@ -0,0 +1,9 @@
+++
title = "RSS Feeds"
path = "rss"
date = 2000-01-01
template = "rss.html"
+++
Want to subscribe to the blog topics through an RSS feed? Youve come to the right place!
If you want to receive all content, then subscribe to the [Blog RSS feed here](/rss.xml).

58
templates/rss.html Normal file
View file

@ -0,0 +1,58 @@
{% extends "zola-clean-blog/templates/index.html" %}
{% block header %}
<!-- Page Header -->
<header class="masthead" style="background-image: url('{{ get_url(path="/img/about-bg.jpg")}}')">
<div class="overlay">
</div>
<div class="container">
<div class="row">
<div class="col-lg-8 col-md-10 mx-auto">
<div class="page-heading">
<h1>RSS</h1>
<span class="subheading">RSS feeds</span>
</div>
</div>
</div>
</div>
</header>
{% endblock header %}
{% block content %}
<!-- Main Content -->
<div class="container">
<div class="row">
<div class="col-lg-8 col-md-10 mx-auto">
{{ page.content | safe }}
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-lg-8 col-md-10 mx-auto">
<h2>Categories</h2>
<ul>
{% set categories = get_taxonomy(kind="categories") %}
{% for category in categories.items %}
<li><a href="/categories/{{ category.name }}/rss.xml">{{ category.name }}</a></li>
{% endfor %}
</ul>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-lg-8 col-md-10 mx-auto">
<h2>Tags</h2>
<ul>
{% set tags = get_taxonomy(kind="tags") %}
{% for tag in tags.items %}
<li><a href="/tags/{{ tag.name }}/rss.xml">{{ tag.name }}</a></li>
{% endfor %}
</ul>
</div>
</div>
</div>
{% endblock content %}