Skip to content

Commit f3c402b

Browse files
committed
purge main.css
1 parent ff4e333 commit f3c402b

6 files changed

Lines changed: 385 additions & 10 deletions

File tree

‎.github/workflows/build.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
HASH="$(git log -n 1 --format=%H)"
3636
echo "Building $HASH into $BUILD_DIR ..."
3737
JEKYLL_ENV=production bundle exec jekyll build -d $BUILD_DIR
38+
npx purgecss -v --content _site/*.html _site/**/*.html _site/assets/js/*.js --css _site/assets/css/main.css -o _site/assets/css/purged-main.css
3839
cd $BUILD_DIR
3940
touch .nojekyll
4041
git init -b temp

‎CONTRIBUTING.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ If you're looking to report a problem, feel free to [create an issue](https://gi
77

88
If you'd like to propose a specific change, please [open a Pull Request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork).
99

10-
If you'd like to get more involved, some project ideas are listed on [our issues page](https://github.com/buddhist-uni/buddhist-uni.github.io/issues). [Email me](mailto:khemarato.bhikkhu@gmail.com) a bit about yourself and we can get you started!
10+
If you'd like to get more involved, some project ideas are listed on [our issues page](https://github.com/buddhist-uni/buddhist-uni.github.io/issues?q=is%3Aissue+label%3A%22good+first+issue%22+is%3Aopen). [Email me](mailto:khemarato.bhikkhu@gmail.com) a bit about yourself and we can get you started!
1111

1212
For an introduction to the codebase, read on:
1313

@@ -91,7 +91,7 @@ For questions about the source code, feel free to [email me](mailto:khemarato.bh
9191
The beauty of Jekyll is that it outputs plain HTML, which you can find in [the repo's "prod" branch](https://github.com/buddhist-uni/buddhist-uni.github.io/tree/prod). This raw html can be reworked in a variety of ways or you can fork the repo to use the source code.
9292
[The entire database can also be found in Bibtex format here](https://buddhistuniversity.net/content.bib), in case that's helpful, for example for importing into an academic reference manager.
9393

94-
**Feel free to reuse this website in any (ethical) way you like** consistent with [the attached MIT License](https://mit-license.org/).
94+
**Feel free to reuse this website in any (ethical) way you like** consistent with [the attached MIT License](https://obu.mit-license.org/).
9595

9696
A slightly out-of-date backup of the site's source code can be found at:
9797

‎_layouts/default.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<noscript>
1414
<link rel="stylesheet" href="{{ gfont }}" />
1515
</noscript>
16-
<link rel="stylesheet" href="/assets/css/main.css?u={% assign cssCacheToken = site.time | date: "%s" | slice: -3, 3 %}{{ cssCacheToken }}">
16+
<link rel="stylesheet" href="/assets/css/{%- if jekyll.environment == 'production' -%}purged-{%- endif -%}main.css?u={% assign cssCacheToken = site.time | date: "%s" | slice: -3, 3 %}{{ cssCacheToken }}">
1717
{% for cc in page.custom_css %}
1818
<link rel="stylesheet" href="/assets/css/{{cc}}.css?u={{ cssCacheToken }}">{% endfor %}
1919
<link rel="apple-touch-icon" sizes="144x144" href="{% link assets/imgs/ms-icon-144x144.png %}">

‎_quick_build.yml‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ exclude:
2727
- scripts/
2828
- content.bib
2929
- _authors/graeber-david.md
30+
- _authors/dalai-lama.md
31+
- _authors/king-wintston.md
3032
- _authors/harrison-paul.md
3133
- _authors/rongton.md
3234
- _authors/tiyavanich.md
@@ -376,7 +378,6 @@ exclude:
376378
- _content/av/sentient-body_sujato.md
377379
- _content/articles/watanabe-kaigyoku_penwell-cameron.md
378380
- _content/articles/ways-of-knowing-and-transmitting-religious-knowledge_salgado-nirmala.md
379-
- _content/reference/wordle.md
380381
- _content/articles/walpola-rahula-and-politicization_raghavan-suren.md
381382
- _content/av/trojan-horse-affair.md
382383
- _content/articles/youth-buddhism_williams-oerberg.md
@@ -441,4 +442,14 @@ exclude:
441442
- _content/monographs/within-our-own-hearts_khema.md
442443
- _content/booklets/normality_teean.md
443444
- _content/articles/pali-canon_payutto.md
444-
445+
- _content/monographs/buddhism-one-teacher-many-traditions_dalai-lama-thunten-chodron.md
446+
- _content/monographs/in-the-hope-of-nibbana_king-winston.md
447+
- _content/av/ancient-path-to-enlightenment_dabei.md
448+
- _content/av/glitters_chin-justin.md
449+
- _content/av/strange-strong-gods_burton-tara-i.md
450+
- _content/monographs/immune_dettmer-philipp.md
451+
- _content/articles/jackals-in-pali_ohnuma-reiko.md
452+
- _content/av/swimming-in-the-rain.md
453+
- _content/monographs/swim-in-a-pond-in-the-rain_saunders-g.md
454+
- _content/av/clock_chang.md
455+
- _content/av/remember_harjo-joy.md

0 commit comments

Comments
 (0)