diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index e0ff1fd..809c497 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -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 diff --git a/README.md b/README.md index a6cbcae..1e89b8e 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 diff --git a/hugo.sh b/hugo.sh new file mode 100755 index 0000000..790a9d0 --- /dev/null +++ b/hugo.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +HUGO_VERSION="0.145.0" + +docker run \ + -p 1313:1313 \ + -v ${PWD}:/src \ + hugomods/hugo:exts-"$HUGO_VERSION" "$@" + diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..25cf6de --- /dev/null +++ b/start.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +./hugo.sh server -D + diff --git a/themes/ananke b/themes/ananke index 33fbda0..3f0b2aa 160000 --- a/themes/ananke +++ b/themes/ananke @@ -1 +1 @@ -Subproject commit 33fbda0e9d3e97c92af5d195be94e8eea8003239 +Subproject commit 3f0b2aa33feefe18b76cb1b64fced8ae800fac5d