Skip to content

Commit c570ff2

Browse files
filiphrgunnarmorling
authored andcommitted
#67 Use latest hugo and add check for explicit version of hugo in publish.sh
1 parent ca00407 commit c570ff2

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

config.toml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ pluralizeListTitles = false
77
canonifyURLs = false
88
disqusShortname = "mapstruct"
99
googleAnalytics = "UA-41136939-1"
10+
disablePathToLower = true
1011

1112
[[menu.main]]
1213
name = "News"

scripts/publish.sh

+11
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,17 @@ then
5959
exit 1;
6060
fi
6161

62+
HUGO_REQUIRED_VERSION="Hugo Static Site Generator v0.30.2"
63+
HUGO_VERSION=`hugo version`
64+
65+
if [[ $HUGO_VERSION != "${HUGO_REQUIRED_VERSION}"* ]]
66+
then
67+
echo "Website should be build with HUGO version: ${HUGO_REQUIRED_VERSION}. However, ${HUGO_VERSION} is being used"
68+
exit 1;
69+
else
70+
echo "Hugo version: ${HUGO_VERSION}"
71+
fi
72+
6273
echo "### Deleting old publication"
6374
rm -rf public
6475
mkdir public

0 commit comments

Comments
 (0)