Skip to content

Commit

Permalink
Upgrade to Hugo 0.125.4 (#1950)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored Apr 26, 2024
1 parent bedcb9c commit e9eca0f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 7 additions & 3 deletions tools/install-hugo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e9eca0f

Please sign in to comment.