From be430fd461a3dd2fefa874815f763260fa2bd1ff Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 1 Dec 2021 18:12:11 +0100 Subject: [PATCH] added an atom feed to the blog --- main/Gemfile | 1 + main/Gemfile.lock | 3 +++ main/_config.yaml | 13 +++++++++++++ main/_includes/blog.html | 2 +- main/_includes/nav/blognav.html | 7 ++++--- 5 files changed, 22 insertions(+), 4 deletions(-) diff --git a/main/Gemfile b/main/Gemfile index 4989be4..3874491 100644 --- a/main/Gemfile +++ b/main/Gemfile @@ -6,3 +6,4 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" } gem "jekyll" gem "webrick" +gem 'jekyll-feed' diff --git a/main/Gemfile.lock b/main/Gemfile.lock index e6c1fc8..c40f3aa 100644 --- a/main/Gemfile.lock +++ b/main/Gemfile.lock @@ -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 diff --git a/main/_config.yaml b/main/_config.yaml index a98a49e..09729ed 100644 --- a/main/_config.yaml +++ b/main/_config.yaml @@ -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 \ No newline at end of file diff --git a/main/_includes/blog.html b/main/_includes/blog.html index e7a5d61..e44de90 100644 --- a/main/_includes/blog.html +++ b/main/_includes/blog.html @@ -8,8 +8,8 @@

📔 Blog

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. -
Please be advised that some posts, especially short stories, may contain mature content.

+

📰 You can also subscribe to this blog through the Atom Feed.

{% include tagbtn.html tag="All" %} {%- assign sorted = site.tags | sort -%} diff --git a/main/_includes/nav/blognav.html b/main/_includes/nav/blognav.html index 6035e4b..30c4ed4 100644 --- a/main/_includes/nav/blognav.html +++ b/main/_includes/nav/blognav.html @@ -18,8 +18,9 @@ 🏠 Back to Main Page {% if prev %} -⏮️ Previous {{ tag }} Post +⏮️ Previous in {{ tag }} {% endif %} {% if next %} -⏭️ Next {{ tag }} Post -{% endif %} \ No newline at end of file +⏭️ Next in {{ tag }} +{% endif %} +📰 Atom Feed \ No newline at end of file