diff --git a/README.md b/README.md index c480be4..3950c88 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,19 @@ Landing page for xvowl. +## Development + +```bash +pnpm i + +pnpm exec hugo version +# Make sure that you have the version ...+extended in the output if not do following workaround + +rm -rf node_modules/hugo-bin/vendor +pnpm exec node ./node_modules/hugo-bin/lib/install.js + +``` + ## Credits https://github.com/tomowang/hugo-theme-tailwind diff --git a/exampleSite/config/_default/hugo.toml b/exampleSite/config/_default/hugo.toml index 3f68e87..924dc01 100644 --- a/exampleSite/config/_default/hugo.toml +++ b/exampleSite/config/_default/hugo.toml @@ -8,7 +8,7 @@ enableInlineShortcodes = true # prevent build failures when using Hugo's Instagram shortcode due to deprecated Instagram API. # See https://github.com/gohugoio/hugo/issues/7228#issuecomment-714490456 ignoreErrors = ["error-remote-getjson"] -theme = "hugo-theme-tailwind" +theme = "." enableGitInfo = true [markup] diff --git a/package.json b/package.json index f9acaeb..d76405a 100644 --- a/package.json +++ b/package.json @@ -1,20 +1,18 @@ { "scripts": { - "build": "hugo --minify -s exampleSite --gc --themesDir=../..", - "dev-hugo": "hugo server -s exampleSite --gc --themesDir=../..", + "build": "hugo --minify -s exampleSite --gc --themesDir=..", + "dev-hugo": "hugo server -s exampleSite --gc --themesDir=..", "dev-tailwind": "npx tailwindcss -i assets/css/main.css -o assets/css/index.css --watch", "dev": "run-p dev-hugo dev-tailwind" }, "devDependencies": { "@tailwindcss/typography": "^0.5.15", + "hugo-bin": "^0.131.1", "npm-run-all": "^4.1.5", "prettier": "^3.3.3", "prettier-plugin-tailwindcss": "^0.6.6", "tailwindcss": "^3.4.10" }, - "dependencies": { - "hugo-bin": "^0.131.1" - }, "hugo-bin": { "buildTags": "extended" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bd56d7c..47155c7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7,14 +7,13 @@ settings: importers: .: - dependencies: - hugo-bin: - specifier: ^0.131.1 - version: 0.131.1 devDependencies: '@tailwindcss/typography': specifier: ^0.5.15 version: 0.5.15(tailwindcss@3.4.10) + hugo-bin: + specifier: ^0.131.1 + version: 0.131.1 npm-run-all: specifier: ^4.1.5 version: 4.1.5