diff options
author | Karl Hallsby <karl@hallsby.com> | 2021-06-17 01:07:53 -0500 |
---|---|---|
committer | Karl Hallsby <karl@hallsby.com> | 2021-06-17 01:28:37 -0500 |
commit | 6419a9ea158fc90a1af81e209bd30592df1a6bf3 (patch) | |
tree | 1b924f16034bfceb26ba682c0d747ec35ffdb09a /_includes/author-links.html | |
parent | cac4b30767ce135ba15bb22f269df73c4a20cb57 (diff) |
Add RSS support with RSS logo in footer
I was already using the jekyll-feed gem to generate an RSS XML file,
but this configuration puts an explicit button on the page that can be
easily accessed and added by people.
This icon shows on the footer of every page, just like the Email,
LinkedIn, and GitHub icon/logo links do.
Diffstat (limited to '_includes/author-links.html')
-rw-r--r-- | _includes/author-links.html | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/_includes/author-links.html b/_includes/author-links.html index 5ddc78a..31cfe2a 100644 --- a/_includes/author-links.html +++ b/_includes/author-links.html @@ -108,6 +108,14 @@ </li> {%- endif -%} + {%- if site.paths.rss -%} + <li title="{{ _locale_string_follow | replace: '[NAME]', 'RSS' }}"> + <a class="button button--circle rss-button" itemprop="sameAs" href="{{ url }} {{ site.paths.rss }}" target="_blank"> + <div class="icon">{%- include svg/icon/social/rss.svg -%}</div> + </a> + </li> + {%- endif -%} + {%- if _author.npm -%} <li title="{{ _locale_string_follow | replace: '[NAME]', 'npm' }}"> <a class="button button--circle npm-button" itemprop="sameAs" href="https://www.npmjs.com/~{{ _author.npm }}" target="_blank"> @@ -115,6 +123,5 @@ </a> </li> {%- endif -%} - </ul> </div> |