From 6419a9ea158fc90a1af81e209bd30592df1a6bf3 Mon Sep 17 00:00:00 2001 From: Karl Hallsby Date: Thu, 17 Jun 2021 01:07:53 -0500 Subject: 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. --- _config.yml | 1 + _includes/author-links.html | 9 ++++++++- _includes/svg/icon/social/rss.svg | 16 ++++++++++++++++ _includes/svg/icon/social/rss.svg.back | 16 ++++++++++++++++ 4 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 _includes/svg/icon/social/rss.svg create mode 100644 _includes/svg/icon/social/rss.svg.back diff --git a/_config.yml b/_config.yml index 0babc35..58c9466 100644 --- a/_config.yml +++ b/_config.yml @@ -40,6 +40,7 @@ author: paths: root: "/" home: "/" + rss: "/feed.xml" # Build settings markdown: kramdown 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 @@ {%- endif -%} + {%- if site.paths.rss -%} +
  • + +
    {%- include svg/icon/social/rss.svg -%}
    +
    +
  • + {%- endif -%} + {%- if _author.npm -%}
  • @@ -115,6 +123,5 @@
  • {%- endif -%} - diff --git a/_includes/svg/icon/social/rss.svg b/_includes/svg/icon/social/rss.svg new file mode 100644 index 0000000..e48c54f --- /dev/null +++ b/_includes/svg/icon/social/rss.svg @@ -0,0 +1,16 @@ + + + + RSS feed icon + + + + + + + + + \ No newline at end of file diff --git a/_includes/svg/icon/social/rss.svg.back b/_includes/svg/icon/social/rss.svg.back new file mode 100644 index 0000000..e48c54f --- /dev/null +++ b/_includes/svg/icon/social/rss.svg.back @@ -0,0 +1,16 @@ + + + + RSS feed icon + + + + + + + + + \ No newline at end of file -- cgit v1.2.3