From 0885320debba4743395e4e4cd78286dff6dda53b Mon Sep 17 00:00:00 2001 From: Jeremy Karst Date: Fri, 4 Apr 2025 21:58:55 -0400 Subject: [PATCH] Changed theme configuration to avoid using git submodules --- .gitmodules | 3 --- Dockerfile | 4 ---- config/_default/hugo.toml | 2 -- config/_default/module.toml | 2 ++ go.mod | 5 +++++ go.sum | 2 ++ themes/congo | 1 - 7 files changed, 9 insertions(+), 10 deletions(-) create mode 100644 go.mod create mode 100644 go.sum delete mode 160000 themes/congo diff --git a/.gitmodules b/.gitmodules index 1da2c4d..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "themes/congo"] - path = themes/congo - url = https://github.com/jpanther/congo.git diff --git a/Dockerfile b/Dockerfile index 7f3028c..4a6d755 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,10 +7,6 @@ RUN apk add --no-cache hugo git ca-certificates # Copy the repository contents COPY . . -# Initialize submodules -RUN git status -RUN git submodule status -RUN git submodule update --init # Build the site RUN hugo --minify diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml index 8c35e7a..bf61a1a 100644 --- a/config/_default/hugo.toml +++ b/config/_default/hugo.toml @@ -5,8 +5,6 @@ baseURL = "https://karsttech.com/" defaultContentLanguage = "en" -theme = "congo" - enableRobotsTXT = true summaryLength = 0 diff --git a/config/_default/module.toml b/config/_default/module.toml index e90665b..bb0e5ed 100644 --- a/config/_default/module.toml +++ b/config/_default/module.toml @@ -1,3 +1,5 @@ [hugoVersion] extended = true min = "0.87.0" +[[imports]] +path = "github.com/jpanther/congo/v2" \ No newline at end of file diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..96e92ca --- /dev/null +++ b/go.mod @@ -0,0 +1,5 @@ +module code.karsttech.com/jeremy/karsttech.com + +go 1.24.2 + +require github.com/jpanther/congo/v2 v2.11.0 // indirect diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..e0e55da --- /dev/null +++ b/go.sum @@ -0,0 +1,2 @@ +github.com/jpanther/congo/v2 v2.11.0 h1:whwuUIn20egAPfMR3HaFu7sW7/rz096bz26sgpsUAwk= +github.com/jpanther/congo/v2 v2.11.0/go.mod h1:1S7DRoO1ZYS4YUdFd1LjTkdyjQwsjFWd8TqSfz3Jd+M= diff --git a/themes/congo b/themes/congo deleted file mode 160000 index 343ba2a..0000000 --- a/themes/congo +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 343ba2a4ae2b7cfec5a0873320e075c894bff304