From 132638a450f6da127732ed81006b37120bc28eaa Mon Sep 17 00:00:00 2001 From: Rickard Andersson Date: Fri, 7 Mar 2025 18:45:24 +0100 Subject: [PATCH 1/4] Update ananke theme --- themes/ananke | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From afada124300dab377a46625f4ce794d621da1476 Mon Sep 17 00:00:00 2001 From: Rickard Andersson Date: Fri, 7 Mar 2025 18:47:23 +0100 Subject: [PATCH 2/4] Add script to run hugo via docker --- README.md | 7 +++---- hugo.sh | 7 +++++++ 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100755 hugo.sh diff --git a/README.md b/README.md index a6cbcae..ff8f18b 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,10 +22,9 @@ 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` + 3. From the repository root, run `./hugo.sh server -D` 4. Visit [http://localhost:1313/blog](http://localhost:1313/blog) in your web browser! ## Spell check diff --git a/hugo.sh b/hugo.sh new file mode 100755 index 0000000..fa1a0ef --- /dev/null +++ b/hugo.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +docker run \ + -p 1313:1313 \ + -v ${PWD}:/src \ + hugomods/hugo:exts-0.145.0 "$@" + From 893e12cb80b7f434cde749e9970d6936cc973aa0 Mon Sep 17 00:00:00 2001 From: Rickard Andersson Date: Tue, 11 Mar 2025 09:17:03 +0100 Subject: [PATCH 3/4] set fixed hugo version --- .github/workflows/gh-pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 2f6d6a52800863126bd6525f7f64723e638d7b4a Mon Sep 17 00:00:00 2001 From: Rickard Andersson Date: Tue, 11 Mar 2025 09:33:18 +0100 Subject: [PATCH 4/4] Add start.sh script to make it easier for newcomers :) --- README.md | 6 +++--- hugo.sh | 4 +++- start.sh | 4 ++++ 3 files changed, 10 insertions(+), 4 deletions(-) create mode 100755 start.sh diff --git a/README.md b/README.md index ff8f18b..1e89b8e 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Visit the blog at [deviesdevelopment.github.io/blog](https://deviesdevelopment.g ### Prerequisites -- Have docker installed! +- Have docker installed ### Write new post @@ -24,8 +24,8 @@ If you want to preview how your post will look like, you can start a local serve 1. Update submodules: `git submodule update --init --recursive` - Required since git submodules is used for Hugo themes - 3. From the repository root, run `./hugo.sh 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 index fa1a0ef..790a9d0 100755 --- a/hugo.sh +++ b/hugo.sh @@ -1,7 +1,9 @@ #!/bin/sh +HUGO_VERSION="0.145.0" + docker run \ -p 1313:1313 \ -v ${PWD}:/src \ - hugomods/hugo:exts-0.145.0 "$@" + 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 +