diff --git a/CHANGELOG.md b/CHANGELOG.md index b85316242f84..8401feb1800d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## Unreleased version - 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) +- 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 - Fixed page titles, subtitles, and excerpts rendering correctly when there are special characeters in them (#856) - Slightly reworked margins and position for avatar image to resolve an alignment issue on Safari. - Changed the width at which the navbar collapses to a higher threshold because most modern non-mobile browsers are >1000px diff --git a/_config.yml b/_config.yml index bf1783da1928..5270a9e9601d 100644 --- a/_config.yml +++ b/_config.yml @@ -40,6 +40,7 @@ round-avatar: true # Uncomment the links you want to show and add your information to each one. social-network-links: email: "someone@example.com" + rss: true # remove this line if you don't want to show an RSS link at the bottom facebook: deanattali github: daattali twitter: daattali @@ -63,8 +64,8 @@ social-network-links: # ORCID: your ORCID ID # google-scholar: your google scholar -# If you want to show a link to an RSS in the footer, add the site description here. -# If you don't want to show an RSS link, remove the following line. +# If you want your website to generate an RSS feed, provide a description +# The URL for the feed will be https:///feed.xml rss-description: This website is a virtual proof that I'm awesome # --- General options --- # diff --git a/_includes/head.html b/_includes/head.html index cf93eda4afbe..ac3e13409c23 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -39,7 +39,9 @@ {% endif %} + {% if site.rss-description %} + {% endif %} {% include gtag.html %} {% include gtm_head.html %} diff --git a/_includes/social-networks-links.html b/_includes/social-networks-links.html index 3f799eb02de9..ac1599dbb2e3 100644 --- a/_includes/social-networks-links.html +++ b/_includes/social-networks-links.html @@ -1,6 +1,6 @@