breaking change: rss feed only generated if rss-description config exists; rss icon only shows if social-network-links.rss is true; closes #814
This commit is contained in:
parent
ffb27515fe
commit
d0928cb455
4 changed files with 7 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
||||||
## Unreleased version
|
## 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)
|
- 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)
|
- 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.
|
- 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
|
- Changed the width at which the navbar collapses to a higher threshold because most modern non-mobile browsers are >1000px
|
||||||
|
|
|
@ -40,6 +40,7 @@ round-avatar: true
|
||||||
# Uncomment the links you want to show and add your information to each one.
|
# Uncomment the links you want to show and add your information to each one.
|
||||||
social-network-links:
|
social-network-links:
|
||||||
email: "someone@example.com"
|
email: "someone@example.com"
|
||||||
|
rss: true # remove this line if you don't want to show an RSS link at the bottom
|
||||||
facebook: deanattali
|
facebook: deanattali
|
||||||
github: daattali
|
github: daattali
|
||||||
twitter: daattali
|
twitter: daattali
|
||||||
|
@ -63,8 +64,8 @@ social-network-links:
|
||||||
# ORCID: your ORCID ID
|
# ORCID: your ORCID ID
|
||||||
# google-scholar: your google scholar
|
# 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 want your website to generate an RSS feed, provide a description
|
||||||
# If you don't want to show an RSS link, remove the following line.
|
# The URL for the feed will be https://<your_website>/feed.xml
|
||||||
rss-description: This website is a virtual proof that I'm awesome
|
rss-description: This website is a virtual proof that I'm awesome
|
||||||
|
|
||||||
# --- General options --- #
|
# --- General options --- #
|
||||||
|
|
|
@ -39,7 +39,9 @@
|
||||||
<meta name="keywords" content="{{ site.keywords }}">
|
<meta name="keywords" content="{{ site.keywords }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if site.rss-description %}
|
||||||
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ '/feed.xml' | absolute_url }}">
|
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ '/feed.xml' | absolute_url }}">
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% include gtag.html %}
|
{% include gtag.html %}
|
||||||
{% include gtm_head.html %}
|
{% include gtm_head.html %}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<ul class="list-inline text-center footer-links">
|
<ul class="list-inline text-center footer-links">
|
||||||
|
|
||||||
{%- if site.rss-description -%}
|
{%- if site.social-network-links.rss and site.rss-description -%}
|
||||||
<li class="list-inline-item">
|
<li class="list-inline-item">
|
||||||
<a href="{{ '/feed.xml' | relative_url }}" title="RSS">
|
<a href="{{ '/feed.xml' | relative_url }}" title="RSS">
|
||||||
<span class="fa-stack fa-lg" aria-hidden="true">
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue