From e8e31868e9e16ca81e5b571f5112c3ed5ccdce1b Mon Sep 17 00:00:00 2001 From: Jonathan Bennett Date: Tue, 30 Jan 2024 06:03:55 -0500 Subject: [PATCH 1/2] add icon/logo to feed --- lib/bridgetown-feed/feed.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/bridgetown-feed/feed.xml b/lib/bridgetown-feed/feed.xml index 2276278..5cea084 100644 --- a/lib/bridgetown-feed/feed.xml +++ b/lib/bridgetown-feed/feed.xml @@ -9,6 +9,13 @@ {{ site.time | date_to_xmlschema }} {{ page.url | absolute_url | xml_escape }} + {% if site.feed.icon and site.feed.icon != empty %} + {{ site.feed.icon | absolute_url }} + {% endif %} + {% if site.feed.logo and site.feed.logo != empty %} + {{ site.feed.logo | absolute_url }} + {% endif %} + {% assign title = site.metadata.title | default: site.metadata.name %} {% if page.collection != "posts" %} {% assign collection = page.collection | capitalize %} From 1b956f99c60cc9152e26887e067c896f2f3c9abe Mon Sep 17 00:00:00 2001 From: Jonathan Bennett Date: Sat, 21 Sep 2024 22:11:45 -0400 Subject: [PATCH 2/2] update README and changelog --- CHANGELOG.md | 2 ++ README.md | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9447176..7ffae18 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +* add option to set the feed's logo and icon + ... ## 3.1.2 / 2024-03-02 diff --git a/README.md b/README.md index 38db598..42dd057 100644 --- a/README.md +++ b/README.md @@ -234,6 +234,16 @@ feed: post_limit: 25 ``` +## Icons + +You can optionally specify feed's icon and logo relative paths: + +```yml +feed: + icon: "/images/icon.png" + logo: "/images/logo.png" +``` + ## Testing * Run `bundle exec rspec` to run the test suite