Commit ab14a62e authored by colmoneill's avatar colmoneill

RSS everywhere

parent 714dc47f
Pipeline #16410829 passed with stages
in 3 minutes and 4 seconds
......@@ -16,11 +16,12 @@ TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = 'en'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
FEED_ALL_ATOM = 'feeds/all.atom.xml'
CATEGORY_FEED_ATOM = 'feeds/category/%s.atom.xml'
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_ATOM = 'feeds/author/%s.atom.xml'
AUTHOR_FEED_RSS = None
TAG_FEED_RSS = 'feeds/tag/%s.atom.xml'
THEME = "theme/osp-blog"
CSS_FILE = 'screen.css'
......
......@@ -81,6 +81,9 @@ nav#menu ul li{
ul#post-list{
padding: 0;
}
img.rss-icon{
width: 12px;
}
aside ul#footer-tag-list{
padding: 0;
}
......
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="44px"
height="44px"
viewBox="0 0 44 44"
version="1.1"
id="svg11"
sodipodi:docname="rss-black.svg"
inkscape:version="0.92.2 5c3e80d, 2017-08-06">
<metadata
id="metadata15">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title>RSS-black</dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="820"
inkscape:window-height="480"
id="namedview13"
showgrid="false"
inkscape:zoom="5.3636364"
inkscape:cx="22"
inkscape:cy="22"
inkscape:window-x="55"
inkscape:window-y="30"
inkscape:window-maximized="0"
inkscape:current-layer="svg11" />
<!-- Generator: Sketch 3.7.2 (28276) - http://www.bohemiancoding.com/sketch -->
<title
id="title2">RSS-black</title>
<desc
id="desc4">Created with Sketch.</desc>
<defs
id="defs6" />
<g
id="Icons"
stroke="none"
stroke-width="1"
fill="none"
fill-rule="evenodd">
<g
id="Black"
transform="translate(-800.000000, -760.000000)"
fill="#000000">
<path
d="M800.000471,797.714286 C800.000471,794.243 802.81487,791.428571 806.286118,791.428571 C809.757367,791.428571 812.571765,794.243 812.571765,797.714286 C812.571765,801.185571 809.757367,804 806.286118,804 C802.81487,804 800.000471,801.185571 800.000471,797.714286 Z M844,804 L835.619661,804 C835.619661,784.358714 819.641547,768.380429 800.000471,768.380429 L800.000471,760 C824.261497,760 844,779.738714 844,804 Z M829.333543,804 L820.953204,804 C820.953204,792.446857 811.553019,783.048143 800,783.048143 L800,774.666143 C816.174541,774.666143 829.333543,787.825286 829.333543,804 Z"
id="RSS" />
</g>
</g>
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="44px"
height="44px"
viewBox="0 0 44 44"
version="1.1"
id="svg11"
sodipodi:docname="rss-black.svg"
inkscape:version="0.92.2 5c3e80d, 2017-08-06"
inkscape:export-filename="/home/colm/git/OSP/osp.tools.osp-blog/theme/osp-blog/static/rss-black.png"
inkscape:export-xdpi="400.60999"
inkscape:export-ydpi="400.60999">
<metadata
id="metadata15">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title>RSS-black</dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="820"
inkscape:window-height="480"
id="namedview13"
showgrid="false"
inkscape:zoom="5.3636364"
inkscape:cx="22"
inkscape:cy="22"
inkscape:window-x="55"
inkscape:window-y="30"
inkscape:window-maximized="0"
inkscape:current-layer="svg11" />
<!-- Generator: Sketch 3.7.2 (28276) - http://www.bohemiancoding.com/sketch -->
<title
id="title2">RSS-black</title>
<desc
id="desc4">Created with Sketch.</desc>
<defs
id="defs6" />
<g
style="fill:#b3b3b3;fill-rule:evenodd;stroke:none;stroke-width:1"
transform="translate(-800,-760)"
id="Black">
<path
inkscape:connector-curvature="0"
id="RSS"
d="m 800.00047,797.71429 c 0,-3.47129 2.8144,-6.28572 6.28565,-6.28572 3.47125,0 6.28565,2.81443 6.28565,6.28572 0,3.47128 -2.8144,6.28571 -6.28565,6.28571 -3.47125,0 -6.28565,-2.81443 -6.28565,-6.28571 z M 844,804 h -8.38034 c 0,-19.64129 -15.97811,-35.61957 -35.61919,-35.61957 V 760 C 824.2615,760 844,779.73871 844,804 Z m -14.66646,0 h -8.38034 c 0,-11.55314 -9.40018,-20.95186 -20.9532,-20.95186 v -8.382 c 16.17454,0 29.33354,13.15915 29.33354,29.33386 z"
style="fill:#b3b3b3" />
</g>
</svg>
......@@ -2,6 +2,5 @@
{% block title %}{{ SITENAME }} - Articles by {{ author }}{% endblock %}
{% block content_title %}
<h2>Articles by {{ author }}</h2>
<h2>Articles by {{ author }} <a title="osp blog: {{author}} category atom feed" href="{{ SITEURL }}/feeds/author/{{author|lower}}.atom.xml"><img class="rss-icon" src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/imgs/rss-black.png"></a></h2>
{% endblock %}
......@@ -7,7 +7,7 @@
<ul>
{%- for author, articles in authors|sort %}
<li><a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> ({{ articles|count }})</li>
<li><a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> ({{ articles|count }}) <a title="osp blog: {{author}} category atom feed" href="{{ SITEURL }}/feeds/author/{{author|lower}}.atom.xml"><img class="rss-icon" src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/imgs/rss-black.png"></a></li>
{% endfor %}
</ul>
{% endblock %}
......@@ -76,6 +76,7 @@
<input type="text" class="search-query" placeholder="Search" name="q" id="tipue_search_input">
</form>
</li>
<li><a title="Site wide atom feed" href="{{ SITEURL }}/feeds/all.atom.xml"><img class="rss-icon" src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/imgs/rss-black.png"></a></li>
</ul></nav><!-- /#menu -->
{% block content %}
{% endblock %}
......
......@@ -2,7 +2,7 @@
{% block content %}
<ul>
{% for category, articles in categories %}
<li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a></li>
<li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a> <a title="osp blog: {{category}} category atom feed" href="{{ SITEURL }}/feeds/category/{{category}}.atom.xml"><img class="rss-icon" src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/imgs/rss-black.png"></a></li>
{% endfor %}
</ul>
{% endblock %}
{% extends "index.html" %}
{% block content_title %}
<h2>Articles in the {{ category }} category</h2>
{% endblock %}
<h2>Articles in the {{ category }} category <a title="osp blog: {{category}} category atom feed" href="{{ SITEURL }}/feeds/category/{{category}}.atom.xml"><img class="rss-icon" src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/imgs/rss-black.png"></a></h2>
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment