From e38931b7b2a2222e08e3f5e6c7eb86b6614ed1a8 Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Mon, 7 Nov 2016 11:49:21 -0800 Subject: [PATCH] Add RSS Feed link and rel="alternative" link to blog page. Resolves #56. Closes shurcooL/backlog#27. --- _includes/css/style.css | 1 + _includes/feed-link.html | 7 +++++++ _includes/head.html | 2 ++ _includes/wrap.html | 2 +- assets/fonts/feed-icon.svg | 18 ++++++++++++++++++ 5 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 _includes/feed-link.html create mode 100644 assets/fonts/feed-icon.svg diff --git a/_includes/css/style.css b/_includes/css/style.css index d820152e..b05a0931 100755 --- a/_includes/css/style.css +++ b/_includes/css/style.css @@ -416,6 +416,7 @@ a:focus { #blue h3 { color: white; margin-left: 15px; + margin-right: 15px; } .ctitle { diff --git a/_includes/feed-link.html b/_includes/feed-link.html new file mode 100644 index 00000000..5691344f --- /dev/null +++ b/_includes/feed-link.html @@ -0,0 +1,7 @@ +RSS Feed \ No newline at end of file diff --git a/_includes/head.html b/_includes/head.html index f31febf5..0025cd6c 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -8,6 +8,8 @@ {{ site.title }}{% if page.title %} - {{ page.title }}{% endif %} + {% if page.title == "Blog" %}{% endif %} + diff --git a/_includes/wrap.html b/_includes/wrap.html index f7bee7e0..3acf7133 100644 --- a/_includes/wrap.html +++ b/_includes/wrap.html @@ -1,7 +1,7 @@
-

{{ page.title }}.

+

{{ page.title }}.{% if page.title == "Blog" %}{% include feed-link.html %}{% endif %}

diff --git a/assets/fonts/feed-icon.svg b/assets/fonts/feed-icon.svg new file mode 100644 index 00000000..b3251494 --- /dev/null +++ b/assets/fonts/feed-icon.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + +