Skip to content

Commit fe7490c

Browse files
committed
fix nits from review
1 parent 648ba8a commit fe7490c

6 files changed

Lines changed: 11 additions & 8 deletions

‎_content/articles/debates-on-time_bastow-david.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ number: 2
1111
pages: "109--132"
1212
tags:
1313
- abhidhamma
14-
- sects
1514
- dialogue
1615
- time
1716
course: sects

‎_content/av/listening-to-voices_ozeki-klein.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ subcat: podcast
44
authors:
55
- "Ruth Ozeki"
66
- "Ezra Klein"
7-
external_url: "https://www.nytimes.com/2022/01/25/podcasts/transcript-ezra-klein-interviews-ruth-ozeki.html"
7+
external_url: "https://player.fm/series/the-ezra-klein-show/learning-to-listen-to-the-voices-only-you-hear"
8+
source_url: "https://www.nytimes.com/2022/01/25/podcasts/transcript-ezra-klein-interviews-ruth-ozeki.html"
89
status: featured
910
course: things # with prejudice
1011
tags:

‎_content/av/stories-deception-bible_atwood.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ subcat: podcast
44
authors:
55
- "Margaret Atwood"
66
- "Ezra Klein"
7-
external_url: "https://www.nytimes.com/2022/03/25/opinion/ezra-klein-podcast-margaret-atwood.html"
7+
external_url: "https://player.fm/series/the-ezra-klein-show/margaret-atwood-on-the-handmaids-tale-totalitarianism-and-ufos"
8+
source_url: "https://www.nytimes.com/2022/03/25/opinion/ezra-klein-podcast-margaret-atwood.html"
89
course: intellect
910
tags:
1011
- world

‎_content/av/trauma_van-der-kolk-bessel.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ authors:
44
- "Bessel van der Kolk"
55
- "Ezra Klein"
66
subcat: podcast
7-
external_url: "https://www.nytimes.com/2021/08/24/opinion/ezra-klein-podcast-van-der-kolk.html"
7+
external_url: "https://player.fm/series/the-ezra-klein-show/this-conversation-will-change-how-you-think-about-trauma"
8+
source_url: "https://www.nytimes.com/2021/08/24/opinion/ezra-klein-podcast-van-der-kolk.html"
89
status: featured
910
course: feeling
1011
tags:
@@ -17,7 +18,7 @@ tags:
1718
year: 2021
1819
month: aug
1920
publisher: nyt
20-
minutes: 80
21+
minutes: 77
2122
---
2223

2324
> We have brains in order to get along with each other [...] Trauma destroys the capacity to imagine

‎_content/av/why-adults-lose-the-beginners-mind_gopnik-klein.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ authors:
44
- Alison Gopnik
55
- Ezra Klein
66
subcat: podcast
7-
external_url: "https://www.nytimes.com/2021/04/16/opinion/ezra-klein-podcast-alison-gopnik.html"
7+
external_url: "https://player.fm/series/the-ezra-klein-show/a-conversation-about-human-minds-for-human-minds"
8+
source_url: "https://www.nytimes.com/2021/04/16/opinion/ezra-klein-podcast-alison-gopnik.html"
89
status: featured
910
course: aging
1011
tags:
@@ -15,7 +16,7 @@ tags:
1516
year: 2021
1617
month: apr
1718
publisher: nyt
18-
minutes: 64
19+
minutes: 61
1920
---
2021

2122
> you have this young brain that has a lot of what neuroscientists call "plasticity". It can change really easily, essentially. But it’s not very good at putting on its jacket and getting to preschool

‎_tests/content.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A series of tests checking the integrity of the _content data
1616
| Missing Authors | {% assign expect = '' | split: '' %}{% for cont in site.content %}{% for auth in cont.authors %}{% unless auth contains " " %}{% unless expect contains auth %}{% assign expect = expect | push: auth %}{% endunless %}{% endunless %}{% endfor %}{% endfor %}{% assign grouped = expect | group_by_exp: "auth", "site.authors | where: 'slug', auth | size" %}{% for group in grouped %}{% if group.name == 0 %}{% assign failed = group.items %}{% else %}{% assign found = group.items %}{% endif %}{% endfor %}{% if expect.size == found.size %}Pass ✅{% else %}FAIL ❌{% endif %} | Of the {{ expect.size }} authors cited, {{ found.size }} of them are in the database. {% if failed.size > 0 %}Failed to find author pages for: {{ failed | array_to_sentence_string }}{% endif %}
1717
| Unlinked Authors | {% assign authors = site.authors | map: "title" %}{% assign dupes = '' | split: '' %}{% for cont in site.content %}{% for auth in cont.authors %}{% if authors contains auth %}{% assign dupes = dupes | push: cont %}{% break %}{% endif %}{% endfor %}{% endfor %}{% if dupes.size == 0 %}Pass ✅{% else %}FAIL ❌{% endif %} | Found {{ dupes.size }} works with unlinked authors{% if dupes.size > 0 %}: {{ dupes | map: "url" | array_to_sentence_string }}{% endif %}
1818
| Dangling Authors | {% assign authors = site.authors | map: "slug" %}{% for auth in found %}{% assign authors = authors | where_exp: "a", "a != auth" %}{% endfor %}{% assign unfound = '' | split: '' %}{% for auth in authors %}{% assign c = site.content | where: "translator", auth | size %}{% if c > 0 %}{% continue %}{% endif %}{% assign c = site.content | where: "editor", auth | size %}{% if c > 0 %}{% continue %}{% endif %}{% assign c = site.content | where: "reader", auth | size %}{% if c == 0 %}{% assign unfound = unfound | push: auth %}{% endif %}{% endfor %}{% if unfound.size == 0 %}Pass ✅{% else %}FAIL ❌{% endif %} | There are {{ unfound.size }} authors with no works attributed to them{% if unfound.size == 0 %}.{% else %}: {{ unfound | array_to_sentence_string }}.{% endif %}
19-
| Content unexpectedly missing links | {% assign failures = site.content | where_exp: "c", "c.external_url == nil" | where_exp: "c", "c.drive_links == nil" | where_exp: "c", "c.source_url == nil" | where_exp: "c", "c.file_links == nil" | where_exp: "c", "c.category != 'monographs'" | where_exp: "c", "c.status != 'rejected'" | where_exp: "c", "c.subcat != 'film'" %}{% if failures.size == 0 %}Pass ✅{% else %}FAIL ❌{% endif %} | There are {{ failures.size }} missing links{% if failures.size >0 %}: {{ failures | map: "slug" | array_to_sentence_string }}{% endif %}.
19+
| Content unexpectedly missing links | {% assign failures = site.content | where_exp: "c", "c.external_url == nil" | where_exp: "c", "c.drive_links == nil" | where_exp: "c", "c.source_url == nil" | where_exp: "c", "c.file_links == nil" | where_exp: "c", "c.category != 'monographs'" | where_exp: "c", "c.status != 'rejected'" | where_exp: "c", "c.slug != 'historical-dictionary-of-chan_wang-youru'" | where_exp: "c", "c.subcat != 'film'" %}{% if failures.size == 0 %}Pass ✅{% else %}FAIL ❌{% endif %} | There are {{ failures.size }} missing links{% if failures.size >0 %}: {{ failures | map: "slug" | array_to_sentence_string }}{% endif %}.
2020
| Content missing year | {% assign failures = site.content | where_exp: "c", "c.year == nil" %}{% if failures.size == 0 %}Pass ✅{% else %}FAIL ❌{% endif %} | There are {{ failures.size }} missing years{% if failures.size >0 %}: {{ failures | map: "slug" | array_to_sentence_string }}{% endif %}.
2121
| Content missing from its course | {% assign failures = "" | split: "" %}{% for course in site.courses %}{% if course.layout == "multipartcourse" %}{% continue %}{% endif %} {% assign allcc = site.content | where: "course", course.slug | where_exp: "c", "c.category != 'canon'" | where: "c", "c.series != 'ms-study_bodhi'" %}{% for content in allcc %}{% unless course.content contains content.slug %}{% assign failures = failures | push: content %}{% endunless %}{% endfor %}{% endfor %}{% if failures.size == 0 %}Pass ✅{% else %}FAIL ❌{% endif %} | There are {{ failures.size }} found{% if failures.size >0 %}: {{ failures | map: "slug" | array_to_sentence_string }}{% endif %}.
2222
{% if site.partial_build %}| Partial build filters useless stuff | {% assign torem = "" | split: "" %}{% assign courseslugs = site.courses | map: "slug" %}{% assign manualslugs = "tantric,nature,chan,samatha,vipassana,west,nuns,view,thought,society,inner,wider" | split: "," %}{% assign tagslugs = site.tags | map: "slug" %}{% assign courseslugs = tagslugs | concat: courseslugs | concat: manualslugs %}{% for c in site.content %}{% if c.course and courseslugs contains c.course %}{% continue %}{% endif %}{% assign f = "go" %}{% for p in site.posts %}{% if p.content contains c.slug %}{% assign f = "pass" %}{% break %}{% endif %}{% endfor %}{% if f == "pass" %}{% continue %}{% endif %}{% assign torem = torem | push: c %}{% endfor %}{% if torem.size == 0 %}Pass ✅{% else %}FAIL ❌{% endif %} | Found {{ torem.size }} useless pieces{% if torem.size > 0 %} (listed below).{% endif %}

0 commit comments

Comments
 (0)