From 864d8e2c68e3c9d005c299c0c049acea3cc3ff4d Mon Sep 17 00:00:00 2001 From: Barry Morrison <689591+esacteksab@users.noreply.github.com> Date: Sun, 29 Mar 2026 04:09:44 -0600 Subject: [PATCH 1/4] chore: address prettier formatting error --- .prettierrc | 4 +-- README.md | 10 ++++++++ assets/css/prettier-tailwind.css | 2 ++ hugo_stats.json | 43 ++++++++++++++++++++++---------- 4 files changed, 43 insertions(+), 16 deletions(-) create mode 100644 assets/css/prettier-tailwind.css diff --git a/.prettierrc b/.prettierrc index 431c50a..dec5adf 100644 --- a/.prettierrc +++ b/.prettierrc @@ -14,7 +14,6 @@ "parser": "go-template", "goTemplateBracketSpacing": true, "bracketSameLine": true, - "embeddedLanguageFormatting": "off", "htmlWhitespaceSensitivity": "css" } }, @@ -33,8 +32,7 @@ } } ], - "tailwindStylesheet": "./assets/css/*.css", - "tailwindConfig": "./tailwind.config.js", + "tailwindStylesheet": "./assets/css/prettier-tailwind.css", "tailwindFunctions": ["tw"], "cssDeclarationSorterOrder": "smacss" } diff --git a/README.md b/README.md index a9d413f..f991f05 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,16 @@ Not a unique name I know. - There has been some attention paid to a11y, but it may still fall short while I work through things. - Early attempts at i18n. +### Prettier and Stylesheets + +This repo configures Tailwind-aware formatting through `.prettierrc` using `tailwindStylesheet`, which points to `assets/css/prettier-tailwind.css`. + +This is editor/build-tool metadata for formatting only. It is not part of the Hugo runtime stylesheet pipeline and is not shipped to browsers. + +That file currently imports both `assets/css/main.css` and `assets/css/syntax.css`. + +When adding additional stylesheets under `assets/css/`, update `assets/css/prettier-tailwind.css` to include them. If the location or filename of the combined stylesheet changes, also update the `tailwindStylesheet` value in `.prettierrc`. + ## Installation ```bash diff --git a/assets/css/prettier-tailwind.css b/assets/css/prettier-tailwind.css new file mode 100644 index 0000000..0eb93b6 --- /dev/null +++ b/assets/css/prettier-tailwind.css @@ -0,0 +1,2 @@ +@import "./main.css"; +@import "./syntax.css"; diff --git a/hugo_stats.json b/hugo_stats.json index d0b48d6..87e7ef0 100644 --- a/hugo_stats.json +++ b/hugo_stats.json @@ -6,20 +6,22 @@ "div", "footer", "h1", + "h2", "h3", "head", "header", "html", "i", - "input", - "label", "li", "link", "main", "meta", "nav", + "p", + "path", "script", "span", + "svg", "title", "ul" ], @@ -27,21 +29,16 @@ "@container", "active", "bg-neutral-100", - "bg-neutral-50", + "bg-white", "border-1", - "border-orange-500", "bottom-8", + "close-menu", "dark:bg-neutral-900", "dark:bg-zinc-800", - "dark:border-amber-500", "dark:text-neutral-50", - "fa-bars", - "fa-inverse", - "fa-square", - "fa-stack", - "fa-stack-1x", - "fa-stack-2x", + "fa-heart", "fas", + "fixed", "flex", "flex-1", "flex-col", @@ -49,9 +46,12 @@ "flex-row-reverse", "flex-wrap", "footer-links", + "h-6", + "hamburger", "header-title", "hidden", "inline-flex", + "invisible", "items-baseline", "items-center", "lg:mx-32", @@ -60,6 +60,7 @@ "m-0", "main", "max-sm:mb-0", + "mb-1", "mb-2", "md:contents", "md:flex", @@ -69,22 +70,38 @@ "md:pr-4", "md:pt-4", "md:px-8", + "md:text-base", + "md:visible", "menu-", + "menu-content", + "min-h-screen", + "mobile-menu", "mt-2", + "mt-auto", "nav-links", "no-underline", + "overflow-x-hidden", "p-0", "p-2", "pager", "powered-by", "pr-4", + "pt-8", "px-2", + "relative", + "rounded", "text-neutral-900", "text-sm", - "text-sm/6" + "text-xs", + "tight", + "title_cursor", + "w-6", + "w-full", + "z-20" ], "ids": [ - "menu" + "body", + "mobile-menu" ] } } From d2b57ed38259da5cd0c861fb36a2cd4acc27ed64 Mon Sep 17 00:00:00 2001 From: Barry Morrison <689591+esacteksab@users.noreply.github.com> Date: Sun, 29 Mar 2026 04:10:46 -0600 Subject: [PATCH 2/4] feat: Hugo 0.159.0 --- .mise.toml | 4 ++-- config.toml | 2 +- layouts/partials/footer.html | 15 +++++++++------ package.json | 7 +++++-- packages/hugoautogen/hugo_packagemeta.json | 7 +++++++ packages/hugoautogen/package.json | 6 ++++++ pnpm-workspace.yaml | 0 7 files changed, 30 insertions(+), 11 deletions(-) create mode 100644 packages/hugoautogen/hugo_packagemeta.json create mode 100644 packages/hugoautogen/package.json create mode 100644 pnpm-workspace.yaml diff --git a/.mise.toml b/.mise.toml index 4bd7e61..48487ed 100644 --- a/.mise.toml +++ b/.mise.toml @@ -8,5 +8,5 @@ path = ".venv" [tools] -pnpm = "latest" -hugo-extended = "v0.156.0" + pnpm = "latest" + hugo-extended = "v0.159.1" diff --git a/config.toml b/config.toml index c852a56..98ca6cc 100644 --- a/config.toml +++ b/config.toml @@ -23,4 +23,4 @@ title = "My New Hugo Site" [module.hugoVersion] extended = true - min = "0.140.0" + min = "0.159.0" diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index ce970f1..bd8e784 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,20 +1,23 @@