Skip to content

Commit 7b2ae6b

Browse files
committed
fix: pin version 0.145.0 of Hugo
Due to gohugoio/hugo#13553 pin 0.145.0 Use Docker to test Signed-off-by: Gabriele Bartolini <[email protected]>
1 parent 82b3055 commit 7b2ae6b

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/hugo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
build:
3232
runs-on: ubuntu-latest
3333
env:
34-
HUGO_VERSION: 0.120.4
34+
HUGO_VERSION: 0.145.0
3535
steps:
3636
- name: Install Hugo CLI
3737
run: |

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,20 @@ brew install hugo
2424

2525
## How to start the development server
2626

27+
Using Docker:
28+
29+
```sh
30+
docker run --rm \
31+
--name mysite \
32+
-p 8080:8080 \
33+
-v ${PWD}:/src \
34+
-v ${HOME}/hugo_cache:/tmp/hugo_cache \
35+
hugomods/hugo:exts-non-root-0.145.0 \
36+
server -p 8080 --buildDrafts --buildFuture
37+
```
38+
39+
Or with Hugo:
40+
2741
```
2842
hugo serve --buildDrafts --buildFuture
2943
```

0 commit comments

Comments
 (0)