add a rss link to the blog/entries
This commit is contained in:
parent
617f456d93
commit
e6cf40fe05
|
@ -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: '
|
||||
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 24.332 24.332" style="enable-background:new 0 0 24.332 24.332;" xml:space="preserve">
|
||||
<g>
|
||||
<g id="c40_rss">
|
||||
<path d="M3.607,17.11C1.618,17.11,0,18.726,0,20.717c0,1.984,1.618,3.604,3.607,3.604s3.607-1.619,3.607-3.604
|
||||
C7.214,18.726,5.596,17.11,3.607,17.11z"/>
|
||||
<path d="M0.375,7.951C0.169,7.951,0,8.12,0,8.328v4.578c0,0.206,0.169,0.374,0.375,0.374c5.879,0,10.665,4.784,10.665,10.665
|
||||
c0,0.205,0.166,0.375,0.375,0.375h4.581h0.016c0.209,0,0.377-0.17,0.377-0.375l-0.018-0.117
|
||||
C16.305,15.064,9.152,7.951,0.375,7.951z"/>
|
||||
<path d="M24.311,23.828C24.246,10.681,13.531,0.01,0.375,0.01C0.169,0.01,0,0.179,0,0.387v4.711c0,0.207,0.169,0.375,0.375,0.375
|
||||
c10.186,0,18.472,8.287,18.472,18.473c0,0.205,0.168,0.375,0.373,0.375h4.713h0.02c0.205,0,0.379-0.17,0.379-0.375L24.311,23.828z
|
||||
"/>
|
||||
</g>
|
||||
<g id="Capa_1_3_">
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</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
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
/ <a href="/">home</a> / <a>about</a>
|
||||
{% endblock breadcrumbs %}
|
||||
|
||||
{# disable the rss header link #}
|
||||
{% block rss_link %}
|
||||
{% endblock rss_link %}
|
||||
|
||||
{# disable the 'about' header link #}
|
||||
{% block breadcrumbs_right %}
|
||||
{% endblock breadcrumbs_right %}
|
||||
|
|
|
@ -20,7 +20,14 @@
|
|||
<span class="link-consolidated link-consolidated-left">
|
||||
{% block breadcrumbs %} {% endblock %}
|
||||
</span>
|
||||
|
||||
{% block rss_link %}
|
||||
<a href="{{ get_url(path="atom.xml", trailing_slash=false) }}">
|
||||
<img class="link-rss" />
|
||||
</a>
|
||||
{% endblock %}
|
||||
</span>
|
||||
|
||||
<span class="flex-right">
|
||||
{% block breadcrumbs_right %}
|
||||
<span class="link-consolidated link-consolidated-right">
|
||||
|
@ -29,6 +36,7 @@
|
|||
{% endblock %}
|
||||
</span>
|
||||
</header>
|
||||
|
||||
<div class="body-text">
|
||||
{% block content %} {% endblock %}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue