Skip to content

Commit 1472238

Browse files
committed
test
1 parent 284fd2a commit 1472238

8 files changed

Lines changed: 23 additions & 3 deletions

File tree

‎_content/booklets/biology-of-aging_kelly-jessica.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ external_url: "https://library.achievingthedream.org/herkimerbiologyofaging/"
66
drive_links:
77
- "https://drive.google.com/file/d/1pnJNtI62iQPIyiyKVmnpj2rKGLe-rA0e/view?usp=drivesdk"
88
- "https://drive.google.com/file/d/1rCKJxC2xWe6xA9mszgtjVzI_-X6_AEAR/view?usp=drivesdk"
9+
file_links:
10+
- "mediumfiles/kelly-jessica_2017_biology-of-aging.pdf"
11+
- "mediumfiles/kelly-jessica_2017_biology-of-aging.epub"
912
course: body # strongly. Almost featured
1013
tags:
1114
- geriatrics

‎_content/booklets/bmc_geoff.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ title: "The Buddhist Monastic Code"
33
authors: [geoff]
44
external_url: "https://www.dhammatalks.org/ebook_index.html#bmc"
55
drive_links: ["https://obu.pages.dev/assets/epubs/1wkkB3Mk3idhSOyzd8M64mwICYGa8OsOb.epub"]
6+
file_links:
7+
- "smallepubs/geoff_2001_bmc.epub"
68
formats: [epub]
79
year: 2001
810
olid: OL23822296M

‎_content/canon/an5.167.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ external_url: "https://bhantesuddhaso.com/teachings/sutta/an-5-167-codana-sutta/
55
alternate_url: "https://suttacentral.net/an5.167/en/suddhaso"
66
translator: suddhaso
77
drive_links: ["https://drive.google.com/file/d/1tShVl9sGJTuOsj8OG3aZJBtugBLLrbq3/view?usp=drivesdk"]
8+
file_links:
9+
- "smallpdfs/an.005.167.pdf"
810
course: speech
911
tags:
1012
- an

‎_content/canon/toh94.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ external_url: "https://read.84000.co/translation/toh94.html"
55
drive_links:
66
- "https://drive.google.com/file/d/1jyDfG5GeaPy7x_W2l_EoLVmrJg6e2D-E/view?usp=drivesdk"
77
- "https://drive.google.com/file/d/1McUTKoEpC_Ovrx3dJg8VityN5mivUhDD/view?usp=drivesdk"
8+
file_links:
9+
- "smallpdfs/toh94.pdf"
10+
- "smallepubs/toh94.epub"
811
course: mahayana-roots # probably down even further
912
year: 2022
1013
pages: 625

‎_content/monographs/embodying-compassion-in-buddhist-art_lucic-karen.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ external_url: "https://dharmaebooks.org/embodying-compassion-buddhist-art/"
66
drive_links:
77
- "https://drive.google.com/file/d/1l8AVNTaRfU0F70dl0Xz3bIwtY65Dhf62/view?usp=drivesdk"
88
- "https://drive.google.com/file/d/1qNT7-OkabWJ18rsn6NyCjXsUqLpLsTU7/view?usp=drivesdk"
9+
file_links:
10+
- "mediumfiles/lucic-karen_2015_embodying-compassion-in-buddhist-art.pdf"
11+
- "mediumfiles/lucic-karen_2015_embodying-compassion-in-buddhist-art.epub"
912
status: featured
1013
course: mahayana
1114
tags:

‎_content/monographs/human-geography_dorrell-et-al.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ authors:
88
external_url: "https://oer.galileo.usg.edu/geo-textbooks/2/"
99
drive_links:
1010
- "https://drive.google.com/file/d/1IA2ZrcNttgZJxyT8STkJt2tQWyvXn9OD/view?usp=drivesdk"
11+
file_links:
12+
- "largefiles/dorrell-et-al_2018_human-geography.pdf"
1113
course: wider # solidly three stars
1214
tags:
1315
- places # should probably move here once wider is fuller though

‎_data/content.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ filehost: "https://buddhistuniversity.net/"
33
valid_buckets:
44
- "exclusive_01"
55
- "function-data"
6+
- "smallepubs"
7+
- "smallpdfs"
8+
- "mediumfiles"
9+
- "largefiles"
610
noreferrerhosts:
711
- "https://www.shin-ibs.edu"
812

‎_includes/content_filelinks.html‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
{% endif %}
66
{%- if include.content.drive_links.size > 0 -%}
77
{%- for link in include.content.drive_links -%}
8-
{% assign linkfmt = include.content.formats[forloop.index0] %}
8+
{% assign linkfmt = include.content.formats[forloop.index0] %}{% unless linkfmt == "epub" and include.content.file_links[forloop.index0] %}
99
<a class="btn" {% if include.newtab %}target="_blank" {% endif %}{% include content_link_data_attributes.html content=include.content linktype="Google Drive" linkfmt=linkfmt %} href="{{ link }}"><i class="fa{% if link contains "drive.google.com" %}b fa-google-drive{% elsif link contains "play.google.com" %}b fa-google-play{% elsif link contains "obu.pages.dev" %}s fa-cloud-arrow-down{% else %}s fa-globe{% endif %}"></i> {{ linkfmt }}</a>
10-
{%- endfor -%}
10+
{% endunless %}{%- endfor -%}
1111
{%- endif -%}
1212
{% if include.content.file_links.size > 0 %}
1313
{%- for link in include.content.file_links -%}
14+
{%- assign bucket = link | split: "/" | first -%}
1415
{% assign linkfmt = include.content.formats[forloop.index0] %}
15-
<a download class="btn" {% if include.newtab %}target="_blank"{% endif %} {% include content_link_data_attributes.html content=include.content linktype="Self-Hosted" linkfmt=linkfmt %} href="{{ site.data.content.filehost | append: link }}"><i class="fas fa-cloud-arrow-down"></i> {{ linkfmt }}</a>
16+
<a download class="btn" {% if include.newtab %}target="_blank"{% endif %} {% include content_link_data_attributes.html content=include.content linktype="Self-Hosted" linkfmt=linkfmt %} href="{% if bucket == "largefiles" %}https://cfr-cdn.buddhistuniversity.net/{{ link | remove_first: "largefiles/" }}{% else %}{{ site.data.content.filehost | append: link }}{% endif %}"><i class="fas fa-cloud-arrow-down"></i> {{ linkfmt }}</a>
1617
{%- endfor -%}
1718
{%- endif -%}
1819
{% if page.source_url %}

0 commit comments

Comments
 (0)