From e6cf40fe0593304e75bf738c1d6f88df3acafdbb Mon Sep 17 00:00:00 2001 From: colin Date: Thu, 30 Jun 2022 16:45:37 -0700 Subject: [PATCH] add a rss link to the blog/entries --- sass/static/style.scss | 60 ++++++++++++++++++++++++++++++++++++++++++ templates/about.html | 4 +++ templates/base.html | 8 ++++++ 3 files changed, 72 insertions(+) diff --git a/sass/static/style.scss b/sass/static/style.scss index 598c18a..2f3812e 100644 --- a/sass/static/style.scss +++ b/sass/static/style.scss @@ -153,6 +153,58 @@ $icon_h2_slash_svg: ' '; $icon_h2_slash: url("data:image/svg+xml; utf8, #{url-encode($icon_h2_slash_svg)}"); +// CC0; based on: https://www.svgrepo.com/svg/86063/rss-feed-symbol +$icon_rss_svg: ' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +'; +$icon_rss: url("data:image/svg+xml; utf8, #{url-encode($icon_rss_svg)}"); + $marker_title: $icon_bootstrap_arrow_return_right; $marker_section: $icon_bootstrap_arrow_right; @@ -296,6 +348,14 @@ body padding-left: 0.6rem; padding-right: 0.2rem; } + .link-rss + { + content: $icon_rss; + width: 1rem; + height: 1rem; + margin-left: 0.8rem; + margin-bottom: -0.15rem; + } } // the first heading after the global header should have no gap diff --git a/templates/about.html b/templates/about.html index 3814c9b..1d8e0c4 100644 --- a/templates/about.html +++ b/templates/about.html @@ -4,6 +4,10 @@ / home / about {% endblock breadcrumbs %} +{# disable the rss header link #} +{% block rss_link %} +{% endblock rss_link %} + {# disable the 'about' header link #} {% block breadcrumbs_right %} {% endblock breadcrumbs_right %} diff --git a/templates/base.html b/templates/base.html index 36e4991..e176279 100644 --- a/templates/base.html +++ b/templates/base.html @@ -20,7 +20,14 @@ {% block breadcrumbs %} {% endblock %} + + {% block rss_link %} + + + + {% endblock %} + {% block breadcrumbs_right %} @@ -29,6 +36,7 @@ {% endblock %} +
{% block content %} {% endblock %}