diff --git a/.github/workflows/build-preview.yaml b/.github/workflows/build-preview.yaml index c5469b8996..7b4634f85b 100644 --- a/.github/workflows/build-preview.yaml +++ b/.github/workflows/build-preview.yaml @@ -32,7 +32,7 @@ jobs: - name: Install Ruby packages if: github.event.action != 'closed' - uses: ruby/setup-ruby@v1.172.0 + uses: ruby/setup-ruby@v1 with: ruby-version: "3.1" bundler-cache: true diff --git a/.github/workflows/build-site.yaml b/.github/workflows/build-site.yaml index 08a9426c4e..a2a292a003 100644 --- a/.github/workflows/build-site.yaml +++ b/.github/workflows/build-site.yaml @@ -27,7 +27,7 @@ jobs: uses: actions/checkout@v4 - name: Install Ruby packages - uses: ruby/setup-ruby@v1.172.0 + uses: ruby/setup-ruby@v1 with: ruby-version: "3.1" bundler-cache: true diff --git a/.github/workflows/update-citations.yaml b/.github/workflows/update-citations.yaml index a651b0f6dd..b52d0dc1d3 100644 --- a/.github/workflows/update-citations.yaml +++ b/.github/workflows/update-citations.yaml @@ -60,6 +60,13 @@ jobs: run: python _cite/cite.py timeout-minutes: 15 + - name: Commit cache + if: failure() + uses: stefanzweifel/git-auto-commit-action@v5 + with: + file_pattern: "**/.cache/**" + commit_message: "Commit cache" + - name: Check if citations changed if: github.event.action != 'closed' id: changed diff --git a/.gitignore b/.gitignore index c3511ff453..ce175e3fcf 100644 --- a/.gitignore +++ b/.gitignore @@ -5,8 +5,6 @@ _site vendor debug.log __pycache__ -.cache -!cache.db .DS_STORE .env* package.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 9688fabc3b..225c69e08c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ Reference: common-changelog.org +## 1.3.1 - 2024-11-11 + +### Changed + +- Update and improve workflows for building site and citations +- Escape user inputs better in rare edge cases + ## 1.3.0 - 2024-08-16 ### Changed diff --git a/CITATION.cff b/CITATION.cff index 493aba6404..c8d1a30158 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -1,8 +1,8 @@ # citation metadata for the template itself title: "Lab Website Template" -version: 1.3.0 -date-released: 2024-08-16 +version: 1.3.1 +date-released: 2024-11-11 url: "https://github.com/greenelab/lab-website-template" authors: - family-names: "Rubinetti" diff --git a/_cite/.cache/cache.db b/_cite/.cache/cache.db index 96041e520e..f72bfb4eb4 100644 Binary files a/_cite/.cache/cache.db and b/_cite/.cache/cache.db differ diff --git a/_includes/button.html b/_includes/button.html index 47ed98bd2e..9443db8e75 100644 --- a/_includes/button.html +++ b/_includes/button.html @@ -13,7 +13,7 @@ {% if include.flip %} data-flip {% endif %} - aria-label="{{ button.tooltip | default: button.icon | default: "button" | xml_escape }}" + aria-label="{{ button.tooltip | default: button.icon | default: "button" | regex_strip }}" > {% include icon.html icon=button.icon %} {% if button.text and button.text != "" %} diff --git a/_includes/card.html b/_includes/card.html index 77614b1e12..e944ba89e1 100644 --- a/_includes/card.html +++ b/_includes/card.html @@ -2,14 +2,14 @@
{{ include.title | default: @@ -19,7 +19,7 @@ {% if include.title %} {{ citation.title | default: diff --git a/_includes/content.html b/_includes/content.html index da84666f6a..ad3c480b1f 100644 --- a/_includes/content.html +++ b/_includes/content.html @@ -24,7 +24,7 @@ data-dark="{{ dark }}" {% endif %} {% if background %} - style="--image: url('{{ image | relative_url | xml_escape }}')" + style="--image: url('{{ image | relative_url | uri_escape }}')" {% endif %} > {{ section }} diff --git a/_includes/feature.html b/_includes/feature.html index ce7cee9530..8a4f9d4d62 100644 --- a/_includes/feature.html +++ b/_includes/feature.html @@ -6,15 +6,15 @@ > {{ include.title | default: diff --git a/_includes/figure.html b/_includes/figure.html index 25421ec33e..95aff2977f 100644 --- a/_includes/figure.html +++ b/_includes/figure.html @@ -1,18 +1,18 @@
{{ include.caption | default: diff --git a/_includes/footer.html b/_includes/footer.html index e5ff785431..8b2547646e 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -3,7 +3,7 @@