Skip to content

Commit 3d864ce

Browse files
committed
Manually minify
1 parent 285c2c1 commit 3d864ce

9 files changed

Lines changed: 421 additions & 39 deletions

File tree

‎.github/workflows/build.yaml‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,8 @@ jobs:
5858
export RUBYOPT="--enable=yjit"
5959
ruby --version
6060
JEKYLL_ENV=production bundle exec jekyll build -d $BUILD_DIR --trace
61-
- name: Purge CSS
62-
run: |
63-
npx purgecss -v --content "$BUILD_DIR/**/*.html" "$BUILD_DIR/assets/js/*.js" --css $BUILD_DIR/assets/css/main.css -o $BUILD_DIR/assets/css/purged-main.css
64-
test -s $BUILD_DIR/assets/css/purged-main.css
61+
- name: Minify CSS, HTML, and JSs
62+
run: bash scripts/minify.bash
6563
- name: Upload Build as Artifact
6664
uses: actions/upload-pages-artifact@v3
6765
with:

‎_includes/content_filelinks.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{% if include.content.file_links.size > 0 %}
77
{%- for link in include.content.file_links -%}
88
{% assign linkfmt = include.content.formats[forloop.index0] %}
9-
<a class="btn" {% if include.newtab %}target="_blank"{% endif %} {% include content_link_data_attributes.html content=include.content linktype="Self-Hosted" linkfmt=linkfmt %} href={{ site.data.content.filehost | append: link }}><i class="fa{% case linkfmt %}{% when "pdf" %}r fa-file-pdf{% when "jpeg" %}r fa-file-image{% 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> {{ linkfmt }}</a>
9+
<a class="btn" {% if include.newtab %}target="_blank"{% endif %} {% include content_link_data_attributes.html content=include.content linktype="Self-Hosted" linkfmt=linkfmt %} href="{{ site.data.content.filehost | append: link }}"><i class="fa{% case linkfmt %}{% when "pdf" %}r fa-file-pdf{% when "jpeg" %}r fa-file-image{% 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> {{ linkfmt }}</a>
1010
{%- endfor -%}
1111
{%- endif -%}
1212
{%- if include.content.drive_links.size > 0 -%}
@@ -16,7 +16,7 @@
1616
{%- endfor -%}
1717
{%- endif -%}
1818
{% if page.source_url %}
19-
<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>
19+
<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>
2020
{% endif %}
2121
{%- assign showworldcat = false -%}
2222
{%- unless include.content.source_url or include.content.external_url or include.content.file_links or include.content.drive_links.size > 0 -%}

‎_includes/featured_content_list.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div class="content_title">{% capture foo %}{% include simple_content_title.html content=c %}{% endcapture %}{{ foo | strip_newlines }}</div>{% endif %}
1111
<div class="star_label">{% unless c.stars == 3 %}<span class="RatingLabel-{{ c.stars }}">{% include starlabel.html stars=c.stars %}</span>{% endunless %}</div>
1212
{% unless c.olid %}{% assign supex = false %}{% if c.external_url contains 'youtu' %}{% unless c.external_url contains "list" %}
13-
<a href="{{ c.url }}"><img src="https://img.youtube.com/vi/{{ c.external_url | ytid }}/0.jpg" alt="{{ c.title }} Video Thumbnail"></a>{% assign supex = true %}{% endunless %}{% endif %}
13+
<a href="{{ c.url }}"><img src="https://img.youtube.com/vi/{{ c.external_url | ytid }}/0.jpg" alt="{{ c.title | smartify }} Video Thumbnail"></a>{% assign supex = true %}{% endunless %}{% endif %}
1414
{% unless supex %}<div class="content_desc">{{ c.excerpt }}</div>{% endunless %}
1515
{% endunless %}
1616
<div class="data-row"><div class="size-info">{% include content_size.html content=c %}</div>{% include content_filelinks.html content=c newtab=true %}</div>

‎_tags/pali-language.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ image_center_y: 20%
2323
big_image: https://github.com/buddhist-uni/big_imgs/raw/main/banners/footers/thai-manuscript.jpg
2424
big_width: 5134
2525
big_height: 2134
26-
footer_info: <a href=""https://wellcomecollection.org/works/ruaq3gnw>Wellcome</a>, <a href="https://creativecommons.org/licenses/by/4.0">CC BY 4.0</a>
26+
footer_info: <a href="https://wellcomecollection.org/works/ruaq3gnw">Wellcome</a>, <a href="https://creativecommons.org/licenses/by/4.0">CC BY 4.0</a>
2727
---
2828

2929
The liturgical language of Theravada Buddhism and the only Indic language to preserve a complete Tipiṭaka.

‎assets/js/search_index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var RMAX = 100;
1515
{%- assign backtoback = ccurly | append: ocurly -%}
1616
{%- assign doubleo = ocurly | append: ocurly -%}
1717
{%- assign doublec = ccurly | append: ccurly -%}
18-
{%- assign pagesWithoutContent = 'Authors,Highlights,Search' | split: ',' -%}
18+
{%- assign pagesWithoutContent = 'Authors,Highlights,Search,All Content' | split: ',' -%}
1919
{%- assign emptylist = '' | split: '' -%}
2020
var store = { {% assign all = site.documents | concat: site.pages %}
2121
{% for p in all %}

0 commit comments

Comments
 (0)