Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
hugo-version: '0.145.0'
extended: true

- name: Build
Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Visit the blog at [deviesdevelopment.github.io/blog](https://deviesdevelopment.g

### Prerequisites

- [Hugo CLI](https://gohugo.io/getting-started/installing)
- Have docker installed

### Write new post

Expand All @@ -22,11 +22,10 @@ Don't know what to write about? Have a look in the [topics list](topics.md)!

If you want to preview how your post will look like, you can start a local server.

1. Make sure you have [Hugo CLI](https://gohugo.io/getting-started/installing) installed.
2. Update submodules: `git submodule update --init --recursive`
1. Update submodules: `git submodule update --init --recursive`
- Required since git submodules is used for Hugo themes
3. From the repository root, run `hugo server -D`
4. Visit [http://localhost:1313/blog](http://localhost:1313/blog) in your web browser!
3. From the repository root, run `./start.sh`
4. Visit [http://localhost:1313](http://localhost:1313) in your web browser!

## Spell check

Expand Down
9 changes: 9 additions & 0 deletions hugo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

HUGO_VERSION="0.145.0"

docker run \
-p 1313:1313 \
-v ${PWD}:/src \
hugomods/hugo:exts-"$HUGO_VERSION" "$@"

4 changes: 4 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

./hugo.sh server -D

2 changes: 1 addition & 1 deletion themes/ananke
Submodule ananke updated 554 files
Loading