Skip to content

Commit 1722fcf

Browse files
authored
Render link to feed as last item of social-links list (#888)
Merge pull request 888
1 parent 82691a6 commit 1722fcf

File tree

4 files changed

+26
-11
lines changed

4 files changed

+26
-11
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,13 @@ where `title` corresponds to the link-title displayed when a visitor hovers mous
329329
Social platform icons are rendered using the latest version of Font Awesome Free webfonts sourced via remote CDN.
330330
The full list of available social icons can be found at https://fontawesome.com/search?ic=brands
331331

332+
> [!NOTE]
333+
> The link to your site's main syndication feed is always rendered as the last item of the social-links list.<br />
334+
> You may opt to not have this link rendered at all by setting config **`minima.hide_site_feed_link`** to `true`:
335+
> ```yaml
336+
> minima:
337+
> hide_site_feed_link: true # `false` or `null` by default
338+
> ```
332339

333340
### Enabling Google Analytics
334341

_config.yml

+6
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,9 @@
8484
# - title: Jekyll at X (formerly Twitter)
8585
# icon: x-twitter
8686
# url: "https://x.com/jekyllrb"
87+
#
88+
# Hide syndication feed subscription link.
89+
# RSS / Atom feed link is always rendered as the last item of social-links
90+
# list. Set below key to `true` to not have the link to feed rendered as
91+
# part of social-links list.
92+
# hide_site_feed_link: false

_includes/footer.html

-11
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,6 @@
77

88
<div class="footer-col-wrapper">
99
<div class="footer-col">
10-
<p class="feed-subscribe">
11-
<a href="{{ site.feed.path | default: 'feed.xml' | absolute_url }}">
12-
<svg class="svg-icon orange">
13-
<path d="M12.8 16C12.8 8.978 7.022 3.2 0 3.2V0c8.777 0 16 7.223 16 16h-3.2zM2.194
14-
11.61c1.21 0 2.195.985 2.195 2.196 0 1.21-.99 2.194-2.2 2.194C.98 16 0 15.017 0
15-
13.806c0-1.21.983-2.195 2.194-2.195zM10.606
16-
16h-3.11c0-4.113-3.383-7.497-7.496-7.497v-3.11c5.818 0 10.606 4.79 10.606 10.607z"
17-
/>
18-
</svg><span>Subscribe</span>
19-
</a>
20-
</p>
2110
{%- if site.author %}
2211
<ul class="contact-list">
2312
{% if site.author.name -%}

_includes/social.html

+13
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,17 @@
66
</a>
77
</li>
88
{%- endfor -%}
9+
{% unless site.minima.hide_site_feed_link %}
10+
<li>
11+
<a href="{{ site.feed.path | default: 'feed.xml' | absolute_url }}" target="_blank" title="Subscribe to syndication feed">
12+
<svg class="svg-icon grey" viewbox="0 0 16 16">
13+
<path d="M12.8 16C12.8 8.978 7.022 3.2 0 3.2V0c8.777 0 16 7.223 16 16h-3.2zM2.194
14+
11.61c1.21 0 2.195.985 2.195 2.196 0 1.21-.99 2.194-2.2 2.194C.98 16 0 15.017 0
15+
13.806c0-1.21.983-2.195 2.194-2.195zM10.606
16+
16h-3.11c0-4.113-3.383-7.497-7.496-7.497v-3.11c5.818 0 10.606 4.79 10.606 10.607z"
17+
/>
18+
</svg>
19+
</a>
20+
</li>
21+
{%- endunless %}
922
</ul>

0 commit comments

Comments
 (0)