Skip to content

Commit a2f1acd

Browse files
committed
automate master tag list
1 parent 8a6c9bc commit a2f1acd

27 files changed

Lines changed: 83 additions & 66 deletions

‎Gemfile.lock‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ GEM
3434
ffi (1.15.0)
3535
forwardable-extended (2.6.0)
3636
gemoji (3.0.1)
37-
github-pages (213)
37+
github-pages (214)
3838
github-pages-health-check (= 1.17.0)
3939
jekyll (= 3.9.0)
4040
jekyll-avatar (= 0.7.0)
@@ -70,7 +70,7 @@ GEM
7070
jekyll-theme-time-machine (= 0.1.1)
7171
jekyll-titles-from-headings (= 0.5.3)
7272
jemoji (= 0.12.0)
73-
kramdown (= 2.3.0)
73+
kramdown (= 2.3.1)
7474
kramdown-parser-gfm (= 1.1.0)
7575
liquid (= 4.0.3)
7676
mercenary (~> 0.3)
@@ -196,12 +196,12 @@ GEM
196196
gemoji (~> 3.0)
197197
html-pipeline (~> 2.2)
198198
jekyll (>= 3.0, < 5.0)
199-
kramdown (2.3.0)
199+
kramdown (2.3.1)
200200
rexml
201201
kramdown-parser-gfm (1.1.0)
202202
kramdown (~> 2.0)
203203
liquid (4.0.3)
204-
listen (3.5.0)
204+
listen (3.5.1)
205205
rb-fsevent (~> 0.10, >= 0.10.3)
206206
rb-inotify (~> 0.9, >= 0.9.10)
207207
mercenary (0.3.6)

‎_includes/taglist.html‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{%- assign childs = "" | split: "" -%}
2+
{%- if include.level < 4 -%}
3+
{%- for tag in site.tags -%}
4+
{%- assign t = include.level | plus: 1 -%}
5+
{%- if tag.level and tag.level < t -%}
6+
{%- continue -%}
7+
{%- elsif tag.parents contains include.tag.slug -%}
8+
{%- assign childs = childs | push: tag -%}
9+
{%- endif -%}
10+
{%- endfor -%}
11+
{%- assign childs = childs | sort: "sortkey" -%}
12+
{%- endif -%}
13+
14+
<div class="tag-list{{ include.level }}">
15+
<div class="tagbox{{ include.level }}"><a href="{{ include.tag.url }}">{{ include.tag.title }} »</a></div>
16+
{% if childs.size > 0 %}<div class="children{{ include.level }}">
17+
{%- for c in childs -%}
18+
{%- assign nl = include.level | plus: 1 -%}
19+
{% include taglist.html tag=c level=nl %}
20+
{%- endfor -%}
21+
</div>{% endif %}
22+
</div>
23+

‎_layouts/tag.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
{% if parents.size > 0 %}
1616
<em class="back">Supertopic{% if parents.size > 1 %}s{% endif %}: {{ parents | array_to_sentence_string }}</em>
1717
{% else %}
18-
<em class="back">Back: <a href="{% link tags.md %}">Topic Index</a></em>
18+
<em class="back">Back: <a href="{% link tags.html %}">Topic Index</a></em>
1919
{% endif %}
2020
{% endcapture %}{% unless page.banner_info %}{{ backlink }}{% endunless %}
2121
<h1 class="post-title{% if page.banner_info %} overlay-into-banner{% endif %}">{{ page.title | escape }}</h1>

‎_posts/2020-03-13-welcome.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Today I'm happy to welcome you to The Open Buddhist University at GitHub. Congra
77
As you may have noticed, there are two primary ways to study here: taking [our courses]({% link courses.md %}) or hanging out at [the library]({% link library.md %}).
88

99
The library contains all the best content I've found for learning about Buddhism.
10-
Every piece featured in [the bibliographies]({% link tags.md %}) has been vetted for both accuracy and relevance.
10+
Every piece featured in [the bibliographies]({% link tags.html %}) has been vetted for both accuracy and relevance.
1111

1212
As I slowly review and add more content, I highlight the best finds [here]({% link blog.md %}) as well as in the [email newsletter](https://tinyletter.com/buddhist-uni){:target="_blank" ga-event-value="0.5"}, so be sure to subscribe for the best free content on {% include tag-link.html tag="buddhism" %} available online.
1313

‎_posts/2020-04-28-april-showers.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "April Showers"
33
---
44

5-
This month I've gotten a solid start on migrating over content from my [Google Drive folder](https://drive.google.com/drive/folders/1RJi6bEXa25zizGdsm5evCycYuY6a2D8r){:target="_blank" ga-event-value="{{ site.data.ga.drive_folder_value }}"}. You'll now find **four** new [topic tags]({% link tags.md %}) added to the [library]({% link library.md %}).
5+
This month I've gotten a solid start on migrating over content from my [Google Drive folder](https://drive.google.com/drive/folders/1RJi6bEXa25zizGdsm5evCycYuY6a2D8r){:target="_blank" ga-event-value="{{ site.data.ga.drive_folder_value }}"}. You'll now find **four** new [topic tags]({% link tags.html %}) added to the [library]({% link library.md %}).
66

77
- [Imagery in the Early Buddhist Texts]({% link _tags/imagery.md %})
88
- [Lay Buddhism]({% link _tags/lay.md %})

‎_posts/2020-08-31-ebts-and-the-world.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "The World and the Early Buddhist Texts"
33
---
44

5-
Following on [the Pāli Canon readings]({% link _tags/pali-canon.md %}) from [last month]({% link _posts/2020-07-31-nibbana-pali.md %}), this month [the library]({% link library.md %}) added [tags]({% link tags.md %}) on [the Vinaya]({% link _tags/vinaya-pitaka.md %}) and [Sutta Pitika]({% link _tags/sutta.md %})s as well as [the Chinese Agamas]({% link _tags/agama.md %}). I'm especially happy to share this translation of the Canonical Vinaya:
5+
Following on [the Pāli Canon readings]({% link _tags/pali-canon.md %}) from [last month]({% link _posts/2020-07-31-nibbana-pali.md %}), this month [the library]({% link library.md %}) added [tags]({% link tags.html %}) on [the Vinaya]({% link _tags/vinaya-pitaka.md %}) and [Sutta Pitika]({% link _tags/sutta.md %})s as well as [the Chinese Agamas]({% link _tags/agama.md %}). I'm especially happy to share this translation of the Canonical Vinaya:
66

77
{% include content_box.html category="canon" slug="analysis-of-the-bhikkhu-patimokkha_suddhaso" %}
88

‎_sass/nimitta.scss‎

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -498,13 +498,17 @@ h1.overlay-into-banner {
498498
padding-right: 20%;
499499
}
500500

501-
ul.main-tag-list {
502-
li {
503-
font-size: 111%;
504-
}
505-
li li {
506-
font-size: 95%;
507-
}
501+
.tag-list1 div div {
502+
padding-left: 13px;
503+
}
504+
.tagbox1 {
505+
font-size: 140%;
506+
}
507+
.tagbox2 {
508+
font-size: 120%;
509+
}
510+
.tagbox4 {
511+
font-size: 105%;
508512
}
509513

510514
article.tag .tag_desc {

‎_tags/agama.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: "The Āgamas"
33
parents: [ebts, mahayana-canon]
4+
sortkey: 9
45
image: https://illeakyw.sirv.com/Images/banners/wooden-monk.jpg
56
image_width: 1024
67
image_center_X: 46%

‎_tags/buddha.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
title: "The Buddha"
3+
sortkey: 1
4+
level: 3
35
parents:
46
- ebts
57
- cosmology

‎_tags/buddhism.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Buddhism
3+
level: 1
34
parents: [religion]
45
image: https://illeakyw.sirv.com/Images/banners/searching.jpg
56
image_width: 1280

0 commit comments

Comments
 (0)