Upgrade to Hugo 0.125.4 (#1950)

This commit is contained in:
Patrice Chalin 2024-04-26 12:12:15 -04:00 committed by GitHub
parent bedcb9cdcb
commit e9eca0fcb3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 4 deletions

View File

@ -43,7 +43,7 @@
},
"devDependencies": {
"cpy-cli": "^5.0.0",
"hugo-extended": "0.125.2",
"hugo-extended": "github:chalin/hugo-extended#v0.125.4",
"markdown-link-check": "^3.11.2",
"mkdirp": "^3.0.1",
"prettier": "^3.2.5"

View File

@ -6,7 +6,11 @@ set -e
PKG_JSON=${1:-package.json}
if ! npm ls hugo-extended; then
_HUGO_EXTENDED_PKG=`perl -ne 'print "$1\@$2" if /"(hugo-extended)":\s*"\D*(.+?)"/' $PKG_JSON`
(set -x && npm install --save-exact -D $_HUGO_EXTENDED_PKG --omit=optional)
if ! npm ls hugo-extended2; then
_HUGO_EXTENDED_VERS=`perl -ne 'print "$1" if /"hugo-extended":\s*"\D*(.+?)"/' $PKG_JSON`
set -x
if ! npm install --save-exact -D hugo-extended@$_HUGO_EXTENDED_VERS --omit=optional; then
echo "Trying fork instead:"
npm install --save-exact -D chalin/hugo-extended#v$_HUGO_EXTENDED_VERS --omit=optional
fi
fi