Skip to content

Commit d41bc5f

Browse files
committed
Add RSS Feeds for each tag
1 parent b09ca1c commit d41bc5f

4 files changed

Lines changed: 23 additions & 18 deletions

File tree

‎Gemfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ gem "minima", "~> 2.0"
1919

2020
# If you have any plugins, put them here!
2121
group :jekyll_plugins do
22-
gem "jekyll-feed", "~> 0.6"
22+
gem "jekyll-feed", github: 'buddhist-uni/jekyll-feed', branch: 'collection-tags'
2323
gem "jekyll-sitemap", "~> 1.4.0"
2424
gem "jekyll-seo-tag", "~> 2.7.1"
2525
end

‎Gemfile.lock‎

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
1+
GIT
2+
remote: https://github.com/buddhist-uni/jekyll-feed.git
3+
revision: 7769ab191219b023bc1f2e7b69c57e8d98d64a43
4+
branch: collection-tags
5+
specs:
6+
jekyll-feed (0.15.1)
7+
jekyll (>= 3.7, < 5.0)
8+
19
GEM
210
remote: https://rubygems.org/
311
specs:
412
addressable (2.8.0)
513
public_suffix (>= 2.0.2, < 5.0)
614
colorator (1.1.0)
715
concurrent-ruby (1.1.9)
8-
em-websocket (0.5.2)
16+
em-websocket (0.5.3)
917
eventmachine (>= 0.12.9)
10-
http_parser.rb (~> 0.6.0)
18+
http_parser.rb (~> 0)
1119
eventmachine (1.2.7)
1220
ffi (1.15.4)
1321
forwardable-extended (2.6.0)
14-
http_parser.rb (0.6.0)
22+
http_parser.rb (0.8.0)
1523
i18n (1.8.11)
1624
concurrent-ruby (~> 1.0)
1725
jekyll (4.2.1)
@@ -29,8 +37,6 @@ GEM
2937
rouge (~> 3.0)
3038
safe_yaml (~> 1.0)
3139
terminal-table (~> 2.0)
32-
jekyll-feed (0.15.1)
33-
jekyll (>= 3.7, < 5.0)
3440
jekyll-sass-converter (2.1.0)
3541
sassc (> 2.0.1, < 3.0)
3642
jekyll-seo-tag (2.7.1)
@@ -73,7 +79,7 @@ PLATFORMS
7379

7480
DEPENDENCIES
7581
jekyll (~> 4.2.0)
76-
jekyll-feed (~> 0.6)
82+
jekyll-feed!
7783
jekyll-seo-tag (~> 2.7.1)
7884
jekyll-sitemap (~> 1.4.0)
7985
minima (~> 2.0)

‎_config.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ feed:
4040
posts_limit: 10000
4141
collections:
4242
content:
43+
tags: true
4344
categories:
4445
- articles
4546
- av

‎_layouts/tag.html‎

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,12 @@
1111
{% capture plink %}<a href="{{ parent.url }}">{{ parent.title }}</a>{% endcapture %}
1212
{% assign parents = parents | push: plink %}
1313
{% endfor %}
14-
{% capture backlink %}
15-
{% if parents.size > 0 %}
16-
<em class="back">Supertopic{% if parents.size > 1 %}s{% endif %}: {{ parents | array_to_sentence_string }}</em>
17-
{% else %}
18-
<em class="back">Back: <a href="{% link tags.html %}">Topic Index</a></em>
19-
{% endif %}
20-
{% endcapture %}{% unless page.banner_info %}{{ backlink }}{% endunless %}
14+
{% unless page.banner_info %}
15+
<div class="back"><a href="{% link tags.html %}">Topical Bibliographies</a> / {% if parents.size > 0 %}{{ parents | join: ", " }} / {% endif %}</div>
16+
{% endunless %}
2117
<h1 class="post-title{% if page.banner_info %} overlay-into-banner{% endif %}">{{ page.title | escape }}</h1>
2218
{% assign course = site.courses | find: "slug", page.slug %}
23-
{% if course %}
24-
<p><em>For a more structured walkthrough of this content, see the <a href="{{ course.url }}">course</a>.</em></p>
25-
{% endif %}
19+
<p>{% if course %}Also available: <a href="{{ course.url }}"><i class="{{ course.icon }}"></i> As a Syllabus</a><br>{% endif %}Subscribe via: <a href="/feed/content/{{ page.slug }}.xml"><i class="fas fa-rss-square"></i> RSS</a></p>
2620

2721
<div class="{% if course or page.banner_info == nil %}tag_desc{% endif %}">{{ content }}</div>
2822
{% if page.illustration %}
@@ -91,6 +85,10 @@ <h2 id="top" class="toc_header">Table of Contents</h2>
9185
{{ content_list }}
9286
</div>
9387

94-
{{ backlink }}
88+
{% if parents.size > 0 %}
89+
<em class="back">Supertopic{% if parents.size > 1 %}s{% endif %}: {{ parents | array_to_sentence_string }}</em>
90+
{% else %}
91+
<em class="back">Back: <a href="{% link tags.html %}">Topic Index</a></em>
92+
{% endif %}
9593
</article>
9694

0 commit comments

Comments
 (0)