From 5de0153df4a897dbe6bae99634c095cd39f71f45 Mon Sep 17 00:00:00 2001 From: Josh Johanning Date: Thu, 22 Feb 2024 08:04:54 -0600 Subject: [PATCH 1/2] build(ci): update actions versions (#1554) --- .github/workflows/pages-deploy.yml.hook | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pages-deploy.yml.hook b/.github/workflows/pages-deploy.yml.hook index 0d884bc..c33b2a6 100644 --- a/.github/workflows/pages-deploy.yml.hook +++ b/.github/workflows/pages-deploy.yml.hook @@ -37,7 +37,7 @@ jobs: - name: Setup Pages id: pages - uses: actions/configure-pages@v3 + uses: actions/configure-pages@v4 - name: Setup Ruby uses: ruby/setup-ruby@v1 @@ -57,7 +57,7 @@ jobs: \-\-ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/" - name: Upload site artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: path: "_site${{ steps.pages.outputs.base_path }}" @@ -70,4 +70,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v4 From 89b962557a56ccc13eba3c9c20b4270ee9d30042 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri, 23 Feb 2024 03:07:17 +0800 Subject: [PATCH 2/2] fix: correct the generation of relative resource paths (#1553) --- _includes/img-url.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/img-url.html b/_includes/img-url.html index c08e8b9..1483652 100644 --- a/_includes/img-url.html +++ b/_includes/img-url.html @@ -29,9 +29,9 @@ %} {% if include.absolute %} - {% assign url = url | absolute_url %} + {% assign url = site.url | append: site.base_url | append: url %} {% else %} - {% assign url = url | relative_url %} + {% assign url = site.base_url | append: url %} {% endif %} {% endunless %} {%- endif -%}