Skip to content

Commit

Permalink
Maybe fix sitemap base URL problem
Browse files Browse the repository at this point in the history
I changed the command used to build the Hugo site to something I know
works locally to hopefully fix the problem of the base URL being “/” on
the live site, which Google Search Console does not like.
  • Loading branch information
johnjago committed May 14, 2024
1 parent 167d729 commit a3e4452
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,7 @@ jobs:
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Build Hugo site
env:
# For maximum backward compatibility with Hugo modules
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: |
hugo \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
run: hugo --minify

- name: Set up GitHub Pages
id: pages
Expand Down

0 comments on commit a3e4452

Please sign in to comment.