Skip to content

Commit 368368c

Browse files
committed
Some design changes
1 parent 40a5e8b commit 368368c

9 files changed

Lines changed: 97 additions & 37 deletions

File tree

‎_content/monographs/along-the-ancient-silk-routes_hartel-herbert-yaldiz-marianne.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ pages: 212
2222

2323
> The decision of a Buddhist council in favor of extensive missionary work outside India and the dispatch of monks to Afghanistan and Kashmir launched Buddhism's development into a world religion. Thus, at the beginning of our era, Buddhist monks were wandering as missionaries through Central and Far East Asia.
2424
25-
This is a catalog of a 1982 exhibit at the Metropolitan Museum of Art, with the pieces themselves dating from the 3rd century CE to the 10th century CE and now housed in the collections of the West Berlin State Museums. Also included is a scholastic introduction, giving a background to both the Silk Road and the movement of Buddhist art (and therefore Buddhism itself) through Central and East Asia.
25+
This is a catalog of a 1982 exhibit at the Metropolitan Museum of Art, with the pieces themselves dating from the 3rd century CE to the 10th century CE and now housed in the collections of the West Berlin State Museums. Also included is a scholarly introduction, giving a background to both the Silk Road and the movement of Buddhist art (and therefore Buddhism itself) through Central and East Asia.

‎_content/monographs/under-a-white-sky_kolbert-elizabeth.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pages: 256
2020

2121
> … a book about people trying to solve problems created by people trying to solve problems
2222
23-
A few case studies of man setting out to fix his environment.
23+
A few case studies of humanity setting out to fix the environment.
2424

2525
By zooming in on tiny fish and out to the entire stratosphere, it beautifully captures the staggering scope of climate change and its challenges.
2626
In highlighting the scientists and engineers working on it, the book offers a somewhat more hopeful picture of our possible future: less apocalyptic but still incredibly strange.

‎_includes/content_filelinks.html‎

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1-
<div class="content_links">{% if page.collection == "content" and page.external_url %}{% if page.external_url contains "archive.org" and page.category == "monographs" and page.external_url contains "/mode/" %}Read it:{% elsif page.subcat == "podcast" %}Listen:{% elsif page.subcat == "film" or page.subcat == "course" and page.external_url contains "youtu" %}Watch:{% else %}Get it:{% endif %}{% elsif page.collection == "content" and page.drive_links.size > 0 %}Available as:{% endif %}
1+
<div class="content_links"><div class="intro-text">{% if page.collection == "content" and page.external_url %}{% if page.external_url contains "archive.org" and page.category == "monographs" and page.external_url contains "/mode/" %}Read it:{% elsif page.subcat == "podcast" %}Listen:{% elsif page.subcat == "film" or page.subcat == "course" and page.external_url contains "youtu" %}Watch:{% else %}Get it:{% endif %}{% elsif page.collection == "content" and page.drive_links.size > 0 %}Available as:{% endif %}</div>
2+
<div class="the-links">
23
{% if include.content.external_url %}{% assign linkfmt = "" %}
34
{%- capture linkbody -%}<i class="fa{% if include.content.external_url contains "youtu" %}{% assign linkfmt = "YouTube (link)" %}b fa-youtube"></i> YouTube{% elsif include.content.external_url contains "//www.academia.edu/" %}c-academia"></i>cademia.edu{% assign linkfmt = "Academia.edu" %}{% else %}s fa-{% assign ext = include.content.external_url | slice: -4, 4 %}{% if ext == ".mp3" %}{% assign linkfmt = "mp3" %}file-audio"></i> mp3{% elsif ext == ".zip" %}{% assign linkfmt = "zip" %}file-archive"></i> zip{% elsif ext == ".htm" or ext == "html" %}{% assign linkfmt = "html" %}globe"></i> Online{% elsif include.content.external_url contains "download" or include.content.external_url contains "viewcontent.cgi" or include.content.external_url contains "pdf" %}{% assign linkfmt = "pdf" %}file-pdf"></i> pdf{% else %}{% case include.content.category %}{% when "av" %}{% if page.subcat == "film" %}video{% else %}volume-up{% endif %}{% when "booklets" %}book-open{% when "monographs" %}book-open{% else %}globe{% endcase %}"></i> Online{% endif %}{% endif %}{%- endcapture -%}
4-
<a class="btn" {% if include.newtab %}target="_blank"{% endif %} {% include content_link_data_attributes.html content=include.content linktype="Main External URL" linkfmt=linkfmt %} href="{{ include.content.external_url }}"{% for nrh in site.data.content.noreferrerhosts %}{% if include.content.external_url contains nrh %} rel="noreferrer"{% break %}{% endif %}{% endfor %}>{{ linkbody }}</a>
5+
<div class="a-link"><a class="btn" {% if include.newtab %}target="_blank"{% endif %} {% include content_link_data_attributes.html content=include.content linktype="Main External URL" linkfmt=linkfmt %} href="{{ include.content.external_url }}"{% for nrh in site.data.content.noreferrerhosts %}{% if include.content.external_url contains nrh %} rel="noreferrer"{% break %}{% endif %}{% endfor %}>{{ linkbody }}</a></div>
56
{% endif %}
67
{%- if include.content.drive_links.size > 0 -%}
78
{%- for link in include.content.drive_links -%}
89
{% assign linkfmt = include.content.formats[forloop.index0] %}{% unless linkfmt == "epub" and include.content.file_links[forloop.index0] %}
9-
<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{% else %}s fa-globe{% endif %}"></i> {{ linkfmt }}</a>
10+
<div class="a-link"><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{% else %}s fa-globe{% endif %}"></i> {{ linkfmt }}</a></div>
1011
{% endunless %}{%- endfor -%}
1112
{%- endif -%}
1213
{% if include.content.file_links.size > 0 %}
1314
{%- for link in include.content.file_links -%}
1415
{%- assign bucket = link | split: "/" | first -%}
1516
{% assign linkfmt = include.content.formats[forloop.index0] %}
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 == "smallpdfs" %}https://smallpdfs.buddhistuniversity.net/{{ link | remove_first: "smallpdfs/" }}{% elsif 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>
17+
<div class="a-link"><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 == "smallpdfs" %}https://smallpdfs.buddhistuniversity.net/{{ link | remove_first: "smallpdfs/" }}{% elsif 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></div>
1718
{%- endfor -%}
1819
{%- endif -%}
1920
{% if page.source_url %}
20-
<a class="btn" href="{{ include.content.source_url }}" {% if include.newtab %}target="_blank"{% endif %} {% include content_link_data_attributes.html content=include.content linktype="Source" linkfmt="" %}><i class="fas fa-route"></i> Origin</a>
21+
<div class="a-link"><a class="btn" href="{{ include.content.source_url }}" {% if include.newtab %}target="_blank"{% endif %} {% include content_link_data_attributes.html content=include.content linktype="Source" linkfmt="" %}><i class="fas fa-route"></i> Origin</a></div>
2122
{% endif %}
2223
{%- assign showworldcat = false -%}
2324
{%- unless include.content.source_url or include.content.external_url or include.content.file_links or include.content.drive_links.size > 0 -%}
@@ -28,17 +29,19 @@
2829
{%- endif -%}
2930
{%- endunless -%}
3031
{%- if include.content.excerpt_url -%}
31-
{%- if showworldcat -%}<details class="copyright details-reset"><summary>{%- endif -%}
32+
<div class="a-link">{%- if showworldcat -%}<details class="copyright details-reset"><summary>{%- endif -%}
3233
<a class="btn" {% if include.newtab %}target="_blank" {% endif %}href="{{ include.content.excerpt_url }}" {% include content_link_data_attributes.html content=include.content linktype="Preview" linkfmt="html" %}><i class="fas fa-book-reader"></i> Preview</a>
34+
{%- unless showworldcat -%}</div>{%- endunless -%}
3335
{%- endif -%}
3436
{%- if showworldcat -%}
35-
{%- unless include.content.excerpt_url -%}<details class="copyright details-reset"><summary>{%- endunless -%}
37+
{%- unless include.content.excerpt_url -%}<div class="a-link"><details class="copyright details-reset"><summary>{%- endunless -%}
3638
{%- capture authors -%}{% include content_authors_string.html content=include.content %}{%- endcapture -%}
3739
{% assign authors = authors | strip_html | strip | cgi_escape %}
3840
<a class="btn" {% include content_link_data_attributes.html content=include.content linktype="WorldCat" linkfmt="WorldCat" %} href="https://www.worldcat.org/{% if include.content.oclc %}oclc/{{ include.content.oclc }}{% else %}search?q=ti%3A{{ include.content.title | markdownify | strip_html | strip | cgi_escape }}{% if authors %}+au%3A{{ authors }}{% endif %}{% if include.content.category == 'monographs' %}&fq=x0%3Abook+%3E+ln%3Aeng{% endif %}&qt=advanced{% endif %}"><i class="fas fa-binoculars"></i> WorldCat&trade;</a>
3941
<i class="far fa-question-circle"></i>
4042
</summary><div>
4143
<i class="far fa-copyright"></i> This fine, Copyrighted work cannot be shared {% if include.content.excerpt_url %}in its entirety{% else %}directly{% endif %}, however WorldCat&trade; can help you find a copy at a nearby library{% if include.content.category == 'monographs' %} or wherever you get books{% endif %}.
42-
</div></details>
44+
</div></details></div>
4345
{%- endif -%}
46+
</div>
4447
</div>

‎_layouts/content.html‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020

2121
<article class="content-perma">
2222

23-
<header class="post-header">
23+
<header class="post-header" style="margin-bottom: 12px;"><div>
2424
<script>window.topic_category="{{ page.course | default: 'archive' }}";</script>
25-
<div class="back"><a href="/content/">Content</a> / <a href="/content/{{ page.category }}/">{{ category.title }}</a> /</div>
25+
<div class="back"><a href="/content/">Content</a>&nbsp;/ <a href="/content/{{ page.category }}/">{{ category.title }}</a>&nbsp;/</div>
2626
{%- if page.olid -%}
2727
<img src="https://buddhistuniversity.net/assets/imgs/covers/{{ page.olid }}.jpg" alt="the book cover">
2828
{%- elsif page.image -%}
@@ -35,6 +35,7 @@
3535
{%- if dlink.size == 28 or dlink.size == 33 or dlink.size == 44 -%}
3636
<img src="https://drive.google.com/thumbnail?authuser=0&sz=h500&id={{ dlink }}" onerror="this.remove()">
3737
{%- endif -%}{%- endif -%}{%- endif -%}
38+
</div><div class="content-information">
3839
{% assign title = page.title | markdownify | remove: '<p>' | remove: '</p>' | split: ": " %}
3940
<h1 class="post-title">{% if page.subcat %}{% include content_icon.html category=page.category subcat=page.subcat %} {% endif %}{{ title | first }}
4041
{%- if title.size > 1 -%}<span style="color:transparent">: </span><div class="post-subtitle">{{ title | shift | join: ": " }}</div>{%- endif -%}</h1>
@@ -58,8 +59,11 @@ <h2 class="author">Read by {% if reader %}<a href="{{ reader.url }}">{{ reader.t
5859
{% endif %}</div>
5960
</details>
6061
</div>{% endunless %}
62+
<div class="download-info">
6163
{% include content_filelinks.html content=page %}
62-
{% include content_size.html content=page %}
64+
<div>{% include content_size.html content=page %}</div>
65+
</div>
66+
</div>
6367
</header>
6468
<div class="post-content">
6569
{% if page.category == "av" and page.external_url contains "youtu" or page.file_links[0] or page.embedded_html %}{% unless page.external_url contains "list" %}

‎_layouts/tag.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
{% for pslug in page.parents %}
1313
{% assign parent = alltags | find: "slug", pslug %}
1414
{% unless parent %}{% continue %}{% endunless %}
15-
{% capture plink %}<a href="{{ parent.url }}">{{ parent.title }}</a>{% endcapture %}
15+
{% capture plink %}<a href="{{ parent.url }}">{{ parent.title | replace: " ", "&nbsp;" }}</a>{% endcapture %}
1616
{% assign parents = parents | push: plink %}
1717
{% endfor %}
1818
{% unless page.banner_info %}
19-
<div class="back"><a href="/tags" style="font-size: 130%;">Topical Bibliographies</a> / {% if parents.size > 0 %}{{ parents | join: ", " }} / {% endif %}</div>
19+
<div class="back"><a href="/tags" style="font-size: 130%;">Topical Bibliographies</a>&nbsp;/ {% if parents.size > 0 %}{{ parents | join: ", " }}&nbsp;/ {% endif %}</div>
2020
{% endunless %}
2121
<h1 class="post-title{% if page.banner_info %} overlay-into-banner{% endif %}">{{ page.title | escape }}</h1>
2222
{% assign course = site.courses | find: "slug", page.slug %}

‎_sass/nimitta.scss‎

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,8 @@ p, li {
341341

342342
.back {
343343
font-family: $base-font-family;
344+
text-indent: -1em;
345+
padding-left: 1em;
344346
}
345347

346348
header.post-header, div.post-content {
@@ -515,12 +517,28 @@ h1.overlay-into-banner {
515517
padding-right: 20%;
516518
}
517519

518-
.content_links a {
519-
font-family: $ui-font-family;
520+
.content_size {
521+
text-wrap-mode: nowrap;
520522
}
521523

522-
.content_links .btn {
523-
padding: 5px 14px 8px;
524+
.content_links {
525+
display: inline-flex;
526+
.intro-text {
527+
padding-right: 0.5em;
528+
text-align: center;
529+
margin-top: auto;
530+
margin-bottom: auto;
531+
text-wrap-mode: nowrap;
532+
}
533+
.the-links {
534+
display: inline-flex;
535+
flex-wrap: wrap;
536+
place-content: start; // Used by the content tables (elsewhere?) Overridden in featured content list (below) and on content-perma pages
537+
gap: 0.5em;
538+
}
539+
a {
540+
font-family: $ui-font-family;
541+
}
524542
}
525543

526544
main header.post-header {
@@ -598,8 +616,9 @@ div.featured_content_list {
598616
.content_links {
599617
text-align: end;
600618
margin-top: 10px;
601-
a.btn {
602-
margin-bottom: 10px;
619+
margin-bottom: 10px;
620+
.the-links {
621+
place-content: end;
603622
}
604623
}
605624
}

‎_tags/things.md‎

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,24 @@
22
title: "Things"
33
status: unpublished
44
parents: [wider]
5-
illustration: https://illeakyw.sirv.com/Images/tags/NASA_astronaut_Scott_Kelly_corrals_the_supply_of_fresh_fruit_that_arrived_on_HTV-5.jpg
6-
illustration_height: 1704
5+
# illustration: https://illeakyw.sirv.com/Images/tags/NASA_astronaut_Scott_Kelly_corrals_the_supply_of_fresh_fruit_that_arrived_on_HTV-5.jpg
6+
# illustration_height: 1704
7+
# illustration_width: 2560
8+
# illustration_center_x: 58%
9+
# illustration_center_y: 35%
10+
# illustration_caption: >-
11+
# Astronaut Scott Kelly wrangles fresh fruit as it arrives on the International Space Station on the 25th of August, 2015.
12+
# Fresh fruit is a rare and welcome treat aboard the ISS, where they cannot grow food.
13+
# Around him, various tools and equipment are velcroed to the walls to keep them in place.<br>
14+
# (Photo by <a href="https://commons.wikimedia.org/wiki/File:NASA_astronaut_Scott_Kelly_corrals_the_supply_of_fresh_fruit_that_arrived_on_HTV-5.jpg">NASA</a>)
15+
illustration: https://illeakyw.sirv.com/Images/tags/Tlatelolco_Marketplace.JPG
16+
illustration_height: 1920
717
illustration_width: 2560
8-
illustration_center_x: 58%
9-
illustration_center_y: 35%
18+
illustration_center_x: 55%
19+
illustration_center_y: 100%
1020
illustration_caption: >-
11-
Astronaut Scott Kelly wrangles fresh fruit as it arrives on the International Space Station on the 25th of August, 2015.
12-
Fresh fruit is a rare and welcome treat aboard the ISS, where they cannot grow food.
13-
Around him, various tools and equipment are velcroed to the walls to keep them in place.<br>
14-
(Photo by <a href="https://commons.wikimedia.org/wiki/File:NASA_astronaut_Scott_Kelly_corrals_the_supply_of_fresh_fruit_that_arrived_on_HTV-5.jpg">NASA</a>)
21+
A set of clay figurines at <a href="https://en.wikipedia.org/wiki/Field_Museum_of_Natural_History">The Field Museum of Chicago</a> depicts the bustling market square of pre-Columbian Tlatelolco.
22+
(Photo by <a href="https://commons.wikimedia.org/wiki/File:Tlatelolco_Marketplace.JPG">Joe Ravi</a>, <a href="https://creativecommons.org/licenses/by-sa/3.0">CC BY-SA 3.0</a>)
1523
image: https://illeakyw.sirv.com/Images/banners/Seattle_-_Viet_Nam_Buddhist_Temple_offerings_01.jpg
1624
image_width: 2592
1725
image_height: 1944

‎_tags/wider.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ big_height: 2308
1212
image_center_x: 70%
1313
image_center_y: 85%
1414
footer_info: <a href="https://commons.wikimedia.org/wiki/File:Tanguar_haor,_Bangladesh_01.jpg">Abdul Momin</a>, <a href="https://creativecommons.org/licenses/by-sa/4.0">CC BY-SA 4.0</a>
15-
illustration: https://buddhistuniversity.net/imgs/tags/tags/salt_production.jpg
15+
illustration: https://illeakyw.sirv.com/Images/tags/salt_production.jpg
1616
illustration_height: 675
1717
illustration_width: 1200
18-
illustration_center_x: 14%
19-
illustration_center_y: 30%
18+
illustration_center_x: 15%
19+
illustration_center_y: 38%
2020
illustration_caption: >-
2121
Workers collect salt in <i>đòn gánh</i> baskets under a cloudy sunset in Ninh Hòa, Vietnam in May 2014.
2222
The salt is collected from <a href="https://en.wikipedia.org/wiki/Salt_evaporation_pond">evaporated sea water</a> in one of the many clever tricks humans use to extract useful substances from their environment.

‎assets/css/content-perma.scss‎

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,23 @@
33

44
@import "support";
55

6+
article.content-perma {
7+
@media (min-width: 475px) {
8+
header:has(img) {
9+
display: flex;
10+
}
11+
}
12+
.content-information {
13+
margin: auto;
14+
padding-left: 1rem;
15+
padding-top: 0.1lh;
16+
}
17+
}
18+
19+
article.content-perma .post-content {
20+
display: block;
21+
}
22+
623
article.content-perma h1.post-title {
724
font-size: 39px;
825
margin-bottom: 4px;
@@ -85,13 +102,24 @@ article.content-perma iframe {
85102
}
86103

87104
article.content-perma header img {
88-
margin-bottom: 20px;
89-
margin-left: 0px;
105+
border: 1px solid $grey-color-light;
90106
@extend %olcoverimg;
91107
}
92108

109+
div.download-info {
110+
display: flex;
111+
align-items: center;
112+
}
113+
93114
div.content_links {
94-
display: inline-block;
115+
padding: 8px;
116+
border-radius: 8px;
117+
background-color: $banner-color;
118+
color: white;
119+
120+
div.the-links {
121+
place-content: space-evenly;
122+
}
95123
}
96124

97125
.content_size {
@@ -112,9 +140,7 @@ div.content_links {
112140
padding-left: 13px;
113141
}
114142
div {
115-
border: 1px solid gray;
116143
padding: 5px;
117-
background-color: #EEF0FC;
118144
border-radius: 3px;
119145
font-size: 96%;
120146
}

0 commit comments

Comments
 (0)