Skip to content

Commit d0928cb

Browse files
committed
breaking change: rss feed only generated if rss-description config exists; rss icon only shows if social-network-links.rss is true; closes daattali#814
1 parent ffb2751 commit d0928cb

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## Unreleased version
22

33
- Added `post_search` config setting that creates a Search button in the navbar (older websites need to set `post_search: true` to enable this feature) (#770)
4+
- BREAKING CHANGE: More control over RSS feed sharing: previously, an RSS feed was *always* generated, and if the config setting `rss-description` was set then there was an RSS icon in the footer. Now, an RSS feed is only generated when the config setting `rss-description` exists, and an RSS footer icon is only shown if `rss: true` is set in the `social-network-links` config settings
45
- Fixed page titles, subtitles, and excerpts rendering correctly when there are special characeters in them (#856)
56
- Slightly reworked margins and position for avatar image to resolve an alignment issue on Safari.
67
- Changed the width at which the navbar collapses to a higher threshold because most modern non-mobile browsers are >1000px

_config.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ round-avatar: true
4040
# Uncomment the links you want to show and add your information to each one.
4141
social-network-links:
4242
43+
rss: true # remove this line if you don't want to show an RSS link at the bottom
4344
facebook: deanattali
4445
github: daattali
4546
twitter: daattali
@@ -63,8 +64,8 @@ social-network-links:
6364
# ORCID: your ORCID ID
6465
# google-scholar: your google scholar
6566

66-
# If you want to show a link to an RSS in the footer, add the site description here.
67-
# If you don't want to show an RSS link, remove the following line.
67+
# If you want your website to generate an RSS feed, provide a description
68+
# The URL for the feed will be https://<your_website>/feed.xml
6869
rss-description: This website is a virtual proof that I'm awesome
6970

7071
# --- General options --- #

_includes/head.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
<meta name="keywords" content="{{ site.keywords }}">
4040
{% endif %}
4141

42+
{% if site.rss-description %}
4243
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ '/feed.xml' | absolute_url }}">
44+
{% endif %}
4345

4446
{% include gtag.html %}
4547
{% include gtm_head.html %}

_includes/social-networks-links.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<ul class="list-inline text-center footer-links">
22

3-
{%- if site.rss-description -%}
3+
{%- if site.social-network-links.rss and site.rss-description -%}
44
<li class="list-inline-item">
55
<a href="{{ '/feed.xml' | relative_url }}" title="RSS">
66
<span class="fa-stack fa-lg" aria-hidden="true">

0 commit comments

Comments
 (0)