From 28876feb0ce5ea339fe0cb775751890f3ac339d3 Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Tue, 27 Jan 2026 21:44:06 +0100 Subject: Add Hugo site with PaperMod theme for Witryna testing Set up a basic Hugo site with sample posts and witryna.yaml configuration for testing the Witryna deployment tool. Co-Authored-By: Claude Opus 4.5 --- .gitignore | 20 ++++++-------------- .gitmodules | 3 +++ archetypes/default.md | 5 +++++ content/posts/hello-world.md | 21 +++++++++++++++++++++ content/posts/second-post.md | 15 +++++++++++++++ hugo.toml | 20 ++++++++++++++++++++ themes/PaperMod | 1 + witryna.yaml | 4 ++++ 8 files changed, 75 insertions(+), 14 deletions(-) create mode 100644 .gitmodules create mode 100644 archetypes/default.md create mode 100644 content/posts/hello-world.md create mode 100644 content/posts/second-post.md create mode 100644 hugo.toml create mode 160000 themes/PaperMod create mode 100644 witryna.yaml diff --git a/.gitignore b/.gitignore index 0299c7e..14ea4dd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,15 +1,7 @@ -# ---> Hugo -# Generated files by hugo -/public/ -/resources/_gen/ -/assets/jsconfig.json -hugo_stats.json - -# Executable may be added to repository -hugo.exe -hugo.darwin -hugo.linux - -# Temporary lock file while building -/.hugo_build.lock +# Hugo build output +public/ +resources/ +# OS files +.DS_Store +Thumbs.db diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..89af1b0 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/PaperMod"] + path = themes/PaperMod + url = https://github.com/adityatelange/hugo-PaperMod.git diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..25b6752 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +date = '{{ .Date }}' +draft = true +title = '{{ replace .File.ContentBaseName "-" " " | title }}' ++++ diff --git a/content/posts/hello-world.md b/content/posts/hello-world.md new file mode 100644 index 0000000..b4d8d53 --- /dev/null +++ b/content/posts/hello-world.md @@ -0,0 +1,21 @@ ++++ +date = '2026-01-27T21:41:59+01:00' +draft = false +title = 'Hello World' +summary = 'A test post for the Witryna deployment tool.' ++++ + +This is a sample blog post for testing the Witryna static site deployment tool. + +## What is Witryna? + +Witryna is a minimalist Git-based static site deployment orchestrator that: + +- Listens for webhook triggers +- Pulls Git repositories +- Runs containerized build commands +- Publishes static assets via atomic symlink switching + +## Testing + +This Hugo site using the PaperMod theme serves as a test subject for Witryna deployments. diff --git a/content/posts/second-post.md b/content/posts/second-post.md new file mode 100644 index 0000000..2d347e6 --- /dev/null +++ b/content/posts/second-post.md @@ -0,0 +1,15 @@ ++++ +date = '2026-01-27T21:42:00+01:00' +draft = false +title = 'Another Test Post' +summary = 'Additional content for testing purposes.' ++++ + +This is another sample post to ensure the site has multiple pages for testing. + +## Features to Test + +- Homepage listing +- Post navigation +- Theme rendering +- Build output generation diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..a55de6f --- /dev/null +++ b/hugo.toml @@ -0,0 +1,20 @@ +baseURL = 'https://example.org/' +languageCode = 'en-us' +title = 'Witryna Test Site' +theme = 'PaperMod' + +[params] + env = "production" + description = "A test Hugo site for Witryna deployment testing" + author = "Test Author" + showReadingTime = true + showShareButtons = false + showPostNavLinks = true + +[params.homeInfoParams] + Title = "Witryna Test Site" + Content = "A simple Hugo site for testing the Witryna deployment tool." + +[[params.socialIcons]] + name = "github" + url = "https://github.com/" diff --git a/themes/PaperMod b/themes/PaperMod new file mode 160000 index 0000000..3bb0ca2 --- /dev/null +++ b/themes/PaperMod @@ -0,0 +1 @@ +Subproject commit 3bb0ca281fd17eff8e3489011a444f326d7c4c72 diff --git a/witryna.yaml b/witryna.yaml new file mode 100644 index 0000000..2f82826 --- /dev/null +++ b/witryna.yaml @@ -0,0 +1,4 @@ +# Witryna deployment configuration +image: "hugomods/hugo:exts" +command: "hugo --minify" +public: "public" -- cgit v1.2.3