added an atom feed to the blog
All checks were successful
Web/pipeline/head This commit looks good

This commit is contained in:
Ell 2021-12-01 18:12:11 +01:00
parent c912e4bafa
commit be430fd461
5 changed files with 22 additions and 4 deletions

View file

@ -6,3 +6,4 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
gem "jekyll"
gem "webrick"
gem 'jekyll-feed'

View file

@ -29,6 +29,8 @@ GEM
rouge (~> 3.0)
safe_yaml (~> 1.0)
terminal-table (~> 2.0)
jekyll-feed (0.15.1)
jekyll (>= 3.7, < 5.0)
jekyll-sass-converter (2.1.0)
sassc (> 2.0.1, < 3.0)
jekyll-watch (2.2.1)
@ -63,6 +65,7 @@ PLATFORMS
DEPENDENCIES
jekyll
jekyll-feed
webrick
BUNDLED WITH

View file

@ -1,4 +1,9 @@
permalink: blog/:title
plugins:
- jekyll-feed
# markdown formatting
kramdown:
header_offset: 1
typographic_syms:
@ -7,3 +12,11 @@ kramdown:
ndash: --
laquo: "<<"
raquo: ">>"
# atom feed information
url: https://ellpeck.de
title: Ellpeck.de
description: Ellpeck's little internet place
author: Ellpeck
feed:
posts_limit: 100

View file

@ -8,8 +8,8 @@
<h1>📔 Blog</h1>
<p>
This is my blog, where I post about gaming, programming and life. The featured posts are the ones you'll probably be most interested in, but you can select a different category to see every post.
<br><em>Please be advised that some posts, especially short stories, may contain mature content.</em>
</p>
<p>📰 You can also subscribe to this blog through the <a href="/feed.xml">Atom Feed</a>.</p>
<div id="blog-cats">
{% include tagbtn.html tag="All" %}
{%- assign sorted = site.tags | sort -%}

View file

@ -18,8 +18,9 @@
<a class="nav-item nav-link" href="../#blog-{{ tag | slugify }}">🏠 Back to Main Page</a>
{% if prev %}
<a class="nav-item nav-link" href="{{ posts[prev].url }}">⏮️ Previous {{ tag }} Post</a>
<a class="nav-item nav-link" href="{{ posts[prev].url }}">⏮️ Previous in {{ tag }}</a>
{% endif %}
{% if next %}
<a class="nav-item nav-link" href="{{ posts[next].url }}">⏭️ Next {{ tag }} Post</a>
{% endif %}
<a class="nav-item nav-link" href="{{ posts[next].url }}">⏭️ Next in {{ tag }}</a>
{% endif %}
<a class="nav-item nav-link" href="/feed.xml">📰 Atom Feed</a>