Use Hugo modules to import theme, also modernize everything.

This commit is contained in:
Anna Rose 2024-07-03 20:58:00 +00:00
parent 631f851e8b
commit f49428dfea
7 changed files with 17 additions and 8 deletions

4
.gitmodules vendored
View File

@ -1,4 +0,0 @@
[submodule "themes/pickles"]
path = themes/hugo_theme_pickles
url = https://github.com/mismith0227/hugo_theme_pickles
branch = custom

View File

@ -1,4 +1,4 @@
FROM klakegg/hugo as build
FROM hugomods/hugo:0.128.1 as build
WORKDIR /src
COPY . /src/

View File

@ -6,7 +6,7 @@ DOCKER_TAG := latest
all: serve
serve:
sudo docker run --rm -it -p 1313:1313 -v ${PWD}:/src/ klakegg/hugo serve -D -b http://${DEV_IP}:1313/
hugo serve -D --bind 0.0.0.0 -b http://${DEV_IP}:1313/
build:
sudo docker build --no-cache -t ${DOCKER_IMAGE}:${DOCKER_TAG} .

5
go.mod Normal file
View File

@ -0,0 +1,5 @@
module git.annabunches.net/annabunches/annabunches.net
go 1.22.4
require github.com/annabunches/hugo_theme_pickles v0.0.0-20240703205628-424152ab5a84 // indirect

6
go.sum Normal file
View File

@ -0,0 +1,6 @@
github.com/annabunches/hugo_theme_pickles v0.0.0-20240703202759-91b869dc58b1 h1:5KlbYrmn7GHUnJhNUIRk4fmhNGX2EjyU5d7uXRfCLv4=
github.com/annabunches/hugo_theme_pickles v0.0.0-20240703202759-91b869dc58b1/go.mod h1:ab4BDFp6Wuo+H2esD/4Mgq+APRfJ07WdEjxMjah4zSo=
github.com/annabunches/hugo_theme_pickles v0.0.0-20240703205252-c60cd4401745 h1:q6V3oobg4DQGDo/xaQ7v0LqQlZAVGKfcs3Az2fEyJE0=
github.com/annabunches/hugo_theme_pickles v0.0.0-20240703205252-c60cd4401745/go.mod h1:ab4BDFp6Wuo+H2esD/4Mgq+APRfJ07WdEjxMjah4zSo=
github.com/annabunches/hugo_theme_pickles v0.0.0-20240703205628-424152ab5a84 h1:8LLjtRpPZNWuoV3+WvzvoqixCVlq4A84hNMWdgxpppY=
github.com/annabunches/hugo_theme_pickles v0.0.0-20240703205628-424152ab5a84/go.mod h1:ab4BDFp6Wuo+H2esD/4Mgq+APRfJ07WdEjxMjah4zSo=

View File

@ -1,6 +1,5 @@
baseurl = "https://annabunches.net/"
languageCode = "en-us"
theme = "hugo_theme_pickles"
Title = "Anna and the Bunches"
copyright = "© Anna Wiggins, 2006-2024"
@ -67,3 +66,7 @@ googleAnalytics = "G-QFK0K7MGCJ"
defaultMarkdownHandler = "goldmark"
[markup.goldmark.renderer]
unsafe = true
[module]
[[module.imports]]
path = 'github.com/annabunches/hugo_theme_pickles'

@ -1 +0,0 @@
Subproject commit cefcae57251c2707a07bc5f9c579feeea77b1e6c