Skip to content

Commit b92285f

Browse files
authored
Merge pull request #350 from ohmg-dev/add_rss_link_icon
add optional rss link to the title bar
2 parents 631dfd8 + 752c5db commit b92285f

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

ohmg/frontend/templates/_titlebar.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h2 class="page-subtitle">{{subtitle}}</h2>
1616
</span>
1717
{% endif %}
1818
</div>
19-
{% if navlinks %}
19+
{% if navlinks or feed_url %}
2020
<div class="new-title-bar-row-item icon-box">
2121
{% for link in navlinks %}
2222
<span style="display:inline; height:100%; width:100%;">
@@ -29,6 +29,13 @@ <h2 class="page-subtitle">{{subtitle}}</h2>
2929
{% endif %}
3030
</span>
3131
{% endfor %}
32+
{% if feed_url %}
33+
<span style="display:inline; height:100%; width:100%;">
34+
<a style="display:flex; align-items:center; height:100%; width:100%;" href="{{feed_url}}" title="Subscribe to RSS feed">
35+
<i style="font-size:2em;" class="ph-bold ph-rss-simple"></i>
36+
</a>
37+
</span>
38+
{% endif %}
3239
</div>
3340
{% endif %}
3441
</div>

ohmg/frontend/templates/places/place.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
{% block body %}
77

8-
{% include '_titlebar.html' with title=PLACE_PARAMS.PLACE.display_name lead_icon="pin" %}
8+
{% include '_titlebar.html' with title=PLACE_PARAMS.PLACE.display_name lead_icon="pin" feed_url="feed/rss" %}
99

1010
{{ PLACE_PARAMS|json_script:'place-props'}}
1111
{% include '_svelte_component.html' with component_name='Place' %}

0 commit comments

Comments
 (0)