Skip to content

Commit 93f14ff

Browse files
committed
many small design improvements
1 parent 5f9e1ae commit 93f14ff

27 files changed

Lines changed: 94 additions & 15 deletions

‎_config.yml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,42 +98,49 @@ defaults:
9898
type: "posts"
9999
values:
100100
layout: "blog_post"
101+
section: "blog"
101102
-
102103
scope:
103104
path: ""
104105
type: "courses"
105106
values:
106107
layout: "course"
108+
section: "courses"
107109
-
108110
scope:
109111
path: ""
110112
type: "authors"
111113
values:
112114
layout: "author"
115+
section: "library"
113116
-
114117
scope:
115118
path: ""
116119
type: "series"
117120
values:
118121
layout: "series"
122+
section: "library"
119123
-
120124
scope:
121125
path: ""
122126
type: "publishers"
123127
values:
124128
layout: "publisher"
129+
section: "library"
125130
-
126131
scope:
127132
path: ""
128133
type: "journals"
129134
values:
130135
layout: "journal"
136+
section: "library"
131137
-
132138
scope:
133139
path: ""
134140
type: "tags"
135141
values:
136142
layout: "tag"
143+
section: "library"
137144
-
138145
scope:
139146
path: ""
@@ -142,12 +149,14 @@ defaults:
142149
formats: [pdf, epub]
143150
layout: "content"
144151
base_value: 0.2
152+
section: "library"
145153
-
146154
scope:
147155
path: ""
148156
type: "categories"
149157
values:
150158
layout: "content-category"
159+
section: "library"
151160
-
152161
scope:
153162
path: "_content/articles"

‎_courses/chinese-primer.md‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@ subtitle: "A Primer"
44
google_doc_id: 1egG2hjOBIy0qVkvcw5lmlLooIRo8TnYC
55
description: "A line-by-line, character-by-character introduction to the art of reading ancient, Buddhist Chinese, this expansive course covers everything from the fundamentals to epigraphy and the esoteric texts."
66
time: 12
7-
icon: "fab fa-zhihu"
7+
icon: "fac-fojing"
8+
image: https://illeakyw.sirv.com/Images/banners/baisigou_sutra.jpg
9+
sirv_options: contrast=1
10+
image_width: 1280
11+
image_center_y: 34%
12+
# Smaller image with increased contrast actually looks better than the full resolution photo
13+
# big_image: https://upload.wikimedia.org/wikipedia/commons/2/2c/Baisigou_Square_Pagoda_Chinese_Buddhist_sutra_B.jpg
14+
banner_info: <a href="https://commons.wikimedia.org/wiki/File:Baisigou_Square_Pagoda_Chinese_Buddhist_sutra_B.jpg">BabelStone</a>, <a href="https://creativecommons.org/licenses/by-sa/3.0">BY-SA 3.0</a>
815
tags:
916
- agama
1017
- chan-roots

‎_courses/imagery.md‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
---
22
title: "Imagery in the Early Buddhist Texts"
33
icon: "far fa-images"
4-
image: https://illeakyw.sirv.com/Images/imagery-course/intro.JPG
4+
image: https://illeakyw.sirv.com/Images/banners/wheel_stele.jpg
5+
image_width: 1000
6+
image_center_y: 50%
7+
sirv_options: "shadows=-1"
8+
big_image: https://images.metmuseum.org/CRDImages/as/original/DP123360.jpg
9+
banner_info: <a href="https://www.metmuseum.org/art/collection/search/38118">The Met</a>
510
time: 2
611
description: "A rigerous tour of key words and images used in the Early Buddhist Texts, this course unpacks early Buddhist philosophy from the unique perspective of the rhethoric it deployed. This course also serves as an introduction to Pāli for nonspecialists."
712
part_header: This is part of a course going systematically through Bhikkhu Analayo's <a href="/content/monographs/craving-to-liberation_analayo">Excursions</a> <a href="/content/monographs/grasping-to-emptiness_analayo">series</a>.

‎_courses/mn.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ google_doc_id: 1LO0wOVoc17KNUtOfbYo6Gg7wD1ycw9TLndi095Ii02I
99
feedback_id: "The+Majjhima+Nikaya"
1010
icon: "fas fa-crow"
1111
image: "https://illeakyw.sirv.com/Images/banners/buddha_teaching_watercolor.jpg"
12+
sirv_options: "exposure=10"
1213
image_width: 1338
1314
image_center_x: 99%
1415
image_center_y: 6%

‎_courses/pali-new-course.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ tags:
1010
- pali-language
1111
time: 3
1212
icon: "fab fa-product-hunt"
13+
image: https://illeakyw.sirv.com/Images/banners/sinhalese_covers.jpg
14+
image_width: 1280
15+
image_center_y: 90%
16+
big_image: https://upload.wikimedia.org/wikipedia/commons/3/30/Illustrated_Sinhalese_covers_%28inside%29_showing_the_events_Wellcome_L0031774.jpg
17+
banner_info: <a href="https://commons.wikimedia.org/wiki/File:Illustrated_Sinhalese_covers_(inside)_showing_the_events_Wellcome_L0031774.jpg">Wellcome</a>, <a href="https://creativecommons.org/licenses/by/4.0">BY 4.0</a>
1318
next_courses:
1419
- pali-sutta-reading
1520
- imagery

‎_courses/pali-primer.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ tags:
99
- pali-language
1010
time: 4
1111
icon: "fas fa-parking"
12+
image: https://illeakyw.sirv.com/Images/banners/royal-herald.jpg
13+
image_width: 1204
14+
image_center_x: 65%
15+
image_center_y: 13%
16+
banner_info: <a href="https://commons.wikimedia.org/wiki/File:A_herald_reads_from_a_black_parabaik_and_announces_Wellcome_L0026538.jpg">Wellcome</a>, <a href="https://creativecommons.org/licenses/by/4.0">CC BY 4.0</a>
1217
next_courses:
1318
- pali-new-course
1419
- imagery

‎_courses/philosophy.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: "An introduction to Buddhist Philosophy for students starting to fe
66
time: 3
77
icon: "fas fa-chess-queen"
88
image: "https://illeakyw.sirv.com/Images/banners/Odilon_Redon.jpeg"
9+
sirv_options: "saturation=1"
910
image_width: 802
1011
image_center_y: 12%
1112
image_center_x: 39%

‎_courses/tranquility-and-insight.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ google_doc_id: 10EHXFzAMcmtedj6SgolIHBN1t0s-wzK1
55
lecturers:
66
- analayo
77
icon: "fas fa-spinner"
8+
image: https://illeakyw.sirv.com/Images/banners/adachi_matsue.jpg
9+
sirv_options: "blur=1&saturation=1"
10+
image_width: 1280
11+
image_center_x: 40%
12+
image_center_y: 56%
13+
big_image: https://upload.wikimedia.org/wikipedia/commons/5/52/Adachi_Museum_of_Art_Near_Matsue_Japanese_Garden_1.JPG
14+
banner_info: <a href="https://commons.wikimedia.org/wiki/File:Adachi_Museum_of_Art_Near_Matsue_Japanese_Garden_1.JPG">Matsue</a>, <a href="https://creativecommons.org/licenses/by-sa/4.0">BY-SA 4.0</a>
815
description: "A short course on part of the Madhyama Āgama held in 2013, the sutras covered (MA 72-86) revolve around the interdependence of _samatha_ and _vipassana_ meditation and their co-creation of wisdom. Bhikkhu Anālayo makes the difficult subject accessible in his inimitably methodical style."
916
time: 1
1017
tags:

‎_layouts/default.html‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,22 +51,22 @@
5151
<script async src="/assets/js/autotrack.js"></script>
5252
{%- endif -%}{% if page.banner_info %}
5353
<style>
54-
.banner-img { background-image: {{ site.data.banner.overlay }}, url("{{ page.image }}?{{ site.data.banner.sirv_options }}"), {{ site.data.banner.loading_state }}; }
55-
{% if page.image_width > site.data.banner.double_size %}{% if page.image_center_x %}{% assign cx = page.image_width | minus: site.data.banner.double_size | times: page.image_center_x | divided_by: 100 | round %}{% else %}{% assign cx = "center" %}{% endif %}@media(max-width: {{ site.data.banner.max_size | times: site.data.banner.max_stretch }}px){ .banner-img { background-image: {{ site.data.banner.overlay }}, url("{{ page.image }}?cw={{ site.data.banner.double_size }}px&cx={{ cx | default: "0" }}{% if site.data.banner.sirv_options %}&{{ site.data.banner.sirv_options }}{% endif %}"), {{ site.data.banner.loading_state }}; } }{% endif %}
56-
{% if page.image_width and page.big_image %}@media(min-width: {{ page.image_width | times: site.data.banner.max_stretch }}px){ .banner-img { background-image: {{ site.data.banner.overlay }}, url("{{ page.big_image }}"), url("{{ page.image }}?{{ site.data.banner.sirv_options }}"), {{ site.data.banner.loading_state }}; } }{% endif %}
54+
.banner-img { background-image: {{ site.data.banner.overlay }}, url("{{ page.image }}?{{ page.sirv_options | default: site.data.banner.sirv_options }}"), {{ site.data.banner.loading_state }}; }
55+
{% if page.image_width > site.data.banner.double_size %}{% if page.image_center_x %}{% assign cx = page.image_width | minus: site.data.banner.double_size | times: page.image_center_x | divided_by: 100 | round %}{% else %}{% assign cx = "center" %}{% endif %}@media(max-width: {{ site.data.banner.max_size | times: site.data.banner.max_stretch }}px){ .banner-img { background-image: {{ site.data.banner.overlay }}, url("{{ page.image }}?cw={{ site.data.banner.double_size }}px&cx={{ cx | default: "0" }}{% if site.data.banner.sirv_options %}&{{ page.sirv_options | default: site.data.banner.sirv_options }}{% endif %}"), {{ site.data.banner.loading_state }}; } }{% endif %}
56+
{% if page.image_width and page.big_image %}@media(min-width: {{ page.image_width | times: site.data.banner.max_stretch }}px){ .banner-img { background-image: {{ site.data.banner.overlay }}, url("{{ page.big_image }}"), url("{{ page.image }}?{{ page.sirv_options | default: site.data.banner.sirv_options }}"), {{ site.data.banner.loading_state }}; } }{% endif %}
5757
</style>
5858
{% endif %}
5959
</head>
6060

6161
<body>
6262

63-
<header class="site-header{% if page.banner_info %} banner-img{% if page.next_courses %} fullsize{% endif %}{% if page.image_center_y %}" style="background-position-y: {{ page.image_center_y }};{% if page.image_center_x %} background-position-x: {{ page.image_center_x }};{% endif %}{% endif %}{% endif %}" role="banner">
63+
<header class="site-header{% if page.banner_info %} banner-img{% if page.next_courses %} fullsize{% elsif site.header_pages contains page.path %} smallsize{% endif %}{% if page.image_center_y %}" style="background-position-y: {{ page.image_center_y }};{% if page.image_center_x %} background-position-x: {{ page.image_center_x }};{% endif %}{% endif %}{% endif %}" role="banner">
6464
<div class="wrapper">
6565
<a class="site-title" rel="author" href="{{ "/" | relative_url }}"><img height="48" src="/assets/imgs/logo.png" alt="logo"></img><span>{{ site.title | escape }}</span></a>
6666
<nav class="site-nav-links">
6767
{%- for path in site.header_pages -%}
6868
{%- assign my_page = site.pages | where: "path", path | first -%}
69-
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
69+
<a class="page-link{% if my_page.slug == page.section %} highlighted-nav-link{% endif %}" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
7070
{%- endfor -%}
7171
</nav>
7272
</div>

‎_layouts/home.html‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
---
44

55
<article class="home post">
6-
<header class="post-header {% if page.banner_info %}overlay-into-banner{% endif %}">
7-
<h1 class="page-heading">{{ page.title }}</h1>
8-
</header>
96

107
{{ content }}
118

0 commit comments

Comments
 (0)