Skip to content

Commit 9cbd5d7

Browse files
committed
fix Pacific World pdf links
1 parent 2af8d2c commit 9cbd5d7

5 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎_content/articles/buddhas-sons_snow-elson.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "The Buddha's Sons: In Favor of Orthodoxy"
33
authors: ["Elson Snow"]
44
formats: [pdf]
55
drive_links: ["https://drive.google.com/file/d/1BNwtLuHgNce0hrT0T-AL_2rEwyb4Z0JZ/view?usp=drivesdk"]
6-
source_url: "http://www.shin-ibs.edu/documents/pwj-one/one2/10Snow.pdf"
6+
external_url: "https://www.shin-ibs.edu/documents/pwj-one/one2/10Snow.pdf"
77
journal: pw
88
year: 1983
99
pages: "27--28"

‎_data/content.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## File links
22
filehost: "https://buddhistuniversity.net/"
3+
noreferrerhosts:
4+
- "https://www.shin-ibs.edu"
35

46
### Content Similarity Algorithm Parameters
57
## Number of similar works to recommend

‎_includes/content_filelinks.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="content_links">
33
{% assign value = include.content.base_value %}{% if include.content.status=="featured" %}{% assign value = value | times: site.data.ga.featured_value_multiplier %}{% endif %}
44
{% if include.content.external_url %}
5-
<a class="btn" {% if include.newtab %}target="_blank"{% endif %} data-content-path="{{ content_path }}" ga-event-value="{{ value }}" href="{{ include.content.external_url }}"><i class="fa{% if include.content.external_url contains "youtu" %}b fa-youtube"></i> YouTube{% elsif include.content.external_url contains "//www.academia.edu/" %}c-academia"></i>cademia.edu{% else %}s fa-{% assign ext = include.content.external_url | slice: -4, 4 %}{% if ext == ".pdf" %}file-pdf"></i> pdf{% elsif ext == ".mp3" %}file-audio"></i> mp3{% elsif ext == ".zip" %}file-archive"></i> zip{% else %}{% case include.content.category %}{% when "av" %}volume-up{% when "booklets" %}book-open{% when "monographs" %}book-open{% else %}globe{% endcase %}"></i> Online{% endif %}{% endif %}</a>
5+
<a class="btn" {% if include.newtab %}target="_blank"{% endif %} data-content-path="{{ content_path }}" ga-event-value="{{ value }}" href="{{ include.content.external_url }}"{% for nrh in site.data.content.noreferrerhosts %}{% if include.content.external_url contains nrh %} rel="noreferrer"{% break %}{% endif %}{% endfor %}><i class="fa{% if include.content.external_url contains "youtu" %}b fa-youtube"></i> YouTube{% elsif include.content.external_url contains "//www.academia.edu/" %}c-academia"></i>cademia.edu{% else %}s fa-{% assign ext = include.content.external_url | slice: -4, 4 %}{% if ext == ".pdf" %}file-pdf"></i> pdf{% elsif ext == ".mp3" %}file-audio"></i> mp3{% elsif ext == ".zip" %}file-archive"></i> zip{% else %}{% case include.content.category %}{% when "av" %}volume-up{% when "booklets" %}book-open{% when "monographs" %}book-open{% else %}globe{% endcase %}"></i> Online{% endif %}{% endif %}</a>
66
{% endif %}
77
{% if include.content.file_links.size > 0 %}
88
{%- for link in include.content.file_links -%}

‎_includes/content_title.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
{% assign value = c.base_value %}{% if c.status == "featured" %}{% assign value = value | times: site.data.ga.featured_value_multiplier %}{% endif %}
33
{% include_cached content_icon.html category=category subcat=c.subcat %}
44
{% include content_path.liquid content=c %}
5-
<span id="{{ c.slug }}" class="inline_content_title">{% if c.external_url %}<a target="_blank" data-content-path="{{ content_path }}" ga-event-value="{{ value }}" href="{{ c.external_url }}">{% endif %}{{ c.title | markdownify | remove: '<p>' | remove: '</p>' }}{% if c.authors.size > 0 or c.reader %} – {% include content_authors_string.html content=c %}{% endif %}{% if c.external_url %}</a>{% endif %}</span>
5+
<span id="{{ c.slug }}" class="inline_content_title">{% if c.external_url %}<a target="_blank" data-content-path="{{ content_path }}" ga-event-value="{{ value }}" href="{{ c.external_url }}"{% for nrh in site.data.content.noreferrerhosts %}{% if c.external_url contains nrh %} rel="noreferrer"{% break %}{% endif %}{% endfor %}>{% endif %}{{ c.title | markdownify | remove: '<p>' | remove: '</p>' }}{% if c.authors.size > 0 or c.reader %} – {% include content_authors_string.html content=c %}{% endif %}{% if c.external_url %}</a>{% endif %}</span>
66
{% if c.drive_links %}<span class="inline_drive_links">{% for link in c.file_links %}<span class="inline_drive_link"> (<a target="_blank" ga-event-value="{{ value }}" ga-event-label="{{ link }}" data-content-path="{{ content_path }}" href="{{ site.data.content.filehost | append: link }}"><i class="fa{% case c.formats[forloop.index0] %}{% when "pdf" %}r fa-file-pdf{% when "mp3" %}r fa-file-audio{% when "m4a" %}r fa-file-audio{% when "epub" %}s fa-tablet-alt{% when "png" %}r fa-file-image{% when "mp3s" %}r fa-file-open{% when "zip" %}r fa-file-archive{% when "pdfs" %}r fa-file-open{% when "wma" %}r fa-file-audio{% else %}r fa-file{% endcase %}"></i>.{{ c.formats[forloop.index0] }}</a>)</span>{% endfor %}{% for link in c.drive_links %}{% assign index = forloop.index | minus: 1 %}<span class="inline_drive_link"> (<a target="_blank" ga-event-value="{{ value }}" ga-event-label="drive.google.com/{{ content_path }}.{{ c.formats[index] }}" data-content-path="{{ content_path }}" 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{% else %}s fa-globe{% endif %}"></i>.{{ c.formats[index] }}</a>)</span>{% endfor %}</span>{% endif %}

‎_layouts/default.html‎

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

107107
<main class="page-content" aria-label="Content">
108108
<div id="main" tabindex="-1" class="wrapper">
109-
{{ content | replace: 'target="_blank"', 'target="_blank" rel="noopener"' | addicontips }}
109+
{{ content | addicontips }}
110110
</div>
111111
</main>
112112

0 commit comments

Comments
 (0)