{"_id":"@eclecticpassions/indiekit-preset-hugo","_rev":"7-df596d0e12ab2aa587fc81b6bafdce4d","name":"@eclecticpassions/indiekit-preset-hugo","dist-tags":{"latest":"1.0.9"},"versions":{"1.0.3":{"name":"@eclecticpassions/indiekit-preset-hugo","version":"1.0.3","keywords":["indiekit","indiekit-plugin","frontmatter","toml"],"author":{"url":"https://paulrobertlloyd.com","name":"Paul Robert Lloyd"},"license":"MIT","_id":"@eclecticpassions/indiekit-preset-hugo@1.0.3","maintainers":[{"name":"eclecticpassions","email":"dev@eclecticpassions.net"}],"contributors":[{"url":"https://burgeonlab.com","name":"Naty S"}],"homepage":"https://getindiekit.com","bugs":{"url":"https://github.com/eclecticpassions/indiekit-preset-hugo/issues"},"dist":{"shasum":"6ee1878c9d86da5b3da3c744663e66357a87aed0","tarball":"https://registry.npmjs.org/@eclecticpassions/indiekit-preset-hugo/-/indiekit-preset-hugo-1.0.3.tgz","fileCount":7,"integrity":"sha512-l5GNmuewWjoWteGxwx8wyw8QrMcwpXN6ZiunmAVP2yIGPrvCTxPLPg/sq0KRx8Ope4lBmO5dLs79dx2Oacrj7w==","signatures":[{"sig":"MEYCIQCDg957YXEKehzbCa1Z6qUG59iWVTfjSK4B4yl2FwEf5AIhAK6w38EATh1Ns6cohCrHdYjkOsicpkhWIZTs6INXqCsy","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9761},"main":"index.js","type":"module","engines":{"node":">=24.17.0"},"gitHead":"a9074736a013b9923b86981c2edede0bc0f84560","_npmUser":{"name":"eclecticpassions","email":"dev@eclecticpassions.net"},"repository":{"url":"git+https://github.com/eclecticpassions/indiekit-preset-hugo.git","type":"git"},"_npmVersion":"11.17.0","description":"Custom Hugo publication preset for Indiekit","directories":{},"_nodeVersion":"26.5.0","dependencies":{"plur":"^6.0.0","yaml":"^2.9.0","@iarna/toml":"^2.2.5","camelcase-keys":"^10.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/indiekit-preset-hugo_1.0.3_1783918210493_0.12624162540518324","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@eclecticpassions/indiekit-preset-hugo","version":"1.0.4","keywords":["indiekit","indiekit-plugin","frontmatter","toml"],"author":{"url":"https://paulrobertlloyd.com","name":"Paul Robert Lloyd"},"license":"MIT","_id":"@eclecticpassions/indiekit-preset-hugo@1.0.4","maintainers":[{"name":"eclecticpassions","email":"dev@eclecticpassions.net"}],"contributors":[{"url":"https://burgeonlab.com","name":"Naty S"}],"homepage":"https://getindiekit.com","bugs":{"url":"https://github.com/eclecticpassions/indiekit-preset-hugo/issues"},"dist":{"shasum":"5fa3eeaaff8e75d8e42dfeed0536ac591cec6875","tarball":"https://registry.npmjs.org/@eclecticpassions/indiekit-preset-hugo/-/indiekit-preset-hugo-1.0.4.tgz","fileCount":7,"integrity":"sha512-Ixgiz6wUrSqU5KMtLRReY+9dpjmPLY7XOiN+eEp6xmLxIigFxFqo4SuilFFalnGSX2nIjv2hG4hAt/PPPi0UeA==","signatures":[{"sig":"MEUCIQDW6owheDoZX5w71YHUrP1bDamNH6W8c62JYSTWzte1lgIgfmKuHyaA3R0EX09pSEURa9xFiQfF5ORi4K4tGCJrBBU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10806},"main":"index.js","type":"module","engines":{"node":">=24.17.0"},"gitHead":"c4cccd0b0ae9931fbdf56c560c3e453335ca004d","_npmUser":{"name":"eclecticpassions","email":"dev@eclecticpassions.net"},"repository":{"url":"git+https://github.com/eclecticpassions/indiekit-preset-hugo.git","type":"git"},"_npmVersion":"11.17.0","description":"Custom Hugo publication preset for Indiekit","directories":{},"_nodeVersion":"26.5.0","dependencies":{"plur":"^6.0.0","yaml":"^2.9.0","@iarna/toml":"^2.2.5","camelcase-keys":"^10.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/indiekit-preset-hugo_1.0.4_1783928540750_0.9043848857046084","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@eclecticpassions/indiekit-preset-hugo","version":"1.0.5","keywords":["indiekit","indiekit-plugin","frontmatter","toml"],"author":{"url":"https://paulrobertlloyd.com","name":"Paul Robert Lloyd"},"license":"MIT","_id":"@eclecticpassions/indiekit-preset-hugo@1.0.5","maintainers":[{"name":"eclecticpassions","email":"dev@eclecticpassions.net"}],"contributors":[{"url":"https://burgeonlab.com","name":"Naty S"}],"homepage":"https://getindiekit.com","bugs":{"url":"https://github.com/eclecticpassions/indiekit-preset-hugo/issues"},"dist":{"shasum":"06916ff4253f87bfb8fffbcaf28d4cc142141396","tarball":"https://registry.npmjs.org/@eclecticpassions/indiekit-preset-hugo/-/indiekit-preset-hugo-1.0.5.tgz","fileCount":7,"integrity":"sha512-rEvO21XYvCwmHqzhjF+OR5Tk9r8DnZBcV/Ji6FZGMPp1DWQGBea2k3F/f2NV+KSxIVyP81HiO1bMU3dOcMQGtQ==","signatures":[{"sig":"MEQCIAJe2XN0nyfjio06MhvgDI9xt7peZeQFC9krqo3XjhNdAiAV0ST1gHXTf2UsetYQ1gKU2rY6v2gB3ZZXiMRDcLf5qg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10911},"main":"index.js","type":"module","engines":{"node":">=24.17.0"},"gitHead":"1dd3f973b9b56813979c2e307c8f1eb917babe9e","_npmUser":{"name":"eclecticpassions","email":"dev@eclecticpassions.net"},"repository":{"url":"git+https://github.com/eclecticpassions/indiekit-preset-hugo.git","type":"git"},"_npmVersion":"11.17.0","description":"Custom Hugo publication preset for Indiekit","directories":{},"_nodeVersion":"26.5.0","dependencies":{"plur":"^6.0.0","yaml":"^2.9.0","luxon":"^3.7.2","@iarna/toml":"^2.2.5","camelcase-keys":"^10.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/indiekit-preset-hugo_1.0.5_1784102049475_0.8285192451735313","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@eclecticpassions/indiekit-preset-hugo","version":"1.0.6","keywords":["indiekit","indiekit-plugin","frontmatter","toml"],"author":{"url":"https://paulrobertlloyd.com","name":"Paul Robert Lloyd"},"license":"MIT","_id":"@eclecticpassions/indiekit-preset-hugo@1.0.6","maintainers":[{"name":"eclecticpassions","email":"dev@eclecticpassions.net"}],"contributors":[{"url":"https://burgeonlab.com","name":"Naty S"}],"homepage":"https://getindiekit.com","bugs":{"url":"https://github.com/eclecticpassions/indiekit-preset-hugo/issues"},"dist":{"shasum":"8fa5aad4b955056c607e50d0ed29d60e0b28ec40","tarball":"https://registry.npmjs.org/@eclecticpassions/indiekit-preset-hugo/-/indiekit-preset-hugo-1.0.6.tgz","fileCount":7,"integrity":"sha512-v4RIaSd4SCHV1WAii4TCHeu0u2aCJ4DX5KuVF5b9hLTN3cm2GDaAXQovDsV0yaOcITP/bm9Z6qLo5qN8K3r1gQ==","signatures":[{"sig":"MEUCIHfge40REzhrYs44kUTmTS4S/5rK1fUUVdXObOjQy6G4AiEA5hNzN3q8eNxIHACdIiUnpomKmCiYvoFrCtrx6idc/bY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10725},"main":"index.js","type":"module","engines":{"node":">=24.17.0"},"gitHead":"8ea07075cf80ed88453d2b1f1c28b013ce934bd8","_npmUser":{"name":"eclecticpassions","email":"dev@eclecticpassions.net"},"repository":{"url":"git+https://github.com/eclecticpassions/indiekit-preset-hugo.git","type":"git"},"_npmVersion":"11.17.0","description":"Custom Hugo publication preset for Indiekit","directories":{},"_nodeVersion":"26.5.0","dependencies":{"plur":"^6.0.0","yaml":"^2.9.0","luxon":"^3.7.2","@iarna/toml":"^2.2.5","camelcase-keys":"^10.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/indiekit-preset-hugo_1.0.6_1784105577259_0.14888175807771398","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"@eclecticpassions/indiekit-preset-hugo","version":"1.0.7","keywords":["indiekit","indiekit-plugin","frontmatter","toml"],"author":{"url":"https://paulrobertlloyd.com","name":"Paul Robert Lloyd"},"license":"MIT","_id":"@eclecticpassions/indiekit-preset-hugo@1.0.7","maintainers":[{"name":"eclecticpassions","email":"dev@eclecticpassions.net"}],"contributors":[{"url":"https://burgeonlab.com","name":"Naty S"}],"homepage":"https://getindiekit.com","bugs":{"url":"https://github.com/eclecticpassions/indiekit-preset-hugo/issues"},"dist":{"shasum":"c232909ad5628d7ee33246317a6cf9d13428d592","tarball":"https://registry.npmjs.org/@eclecticpassions/indiekit-preset-hugo/-/indiekit-preset-hugo-1.0.7.tgz","fileCount":7,"integrity":"sha512-ozrQMBzRHQwYa/qJbAO9LIUeU1bTNaLLiWN6xErc0oxSzvX6/8vzJR5rAZ3W5Hckj+PO1NqR+j5tjVsqjsOKzg==","signatures":[{"sig":"MEYCIQC0masW47P2+1D0hzMwRBltDIH1WyQbA4REbHT+jl8VoQIhAJ1HgqtVFEWOqlqMWZngr1OgCfz2gAvshS3V2DNGHEtJ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10525},"main":"index.js","type":"module","engines":{"node":">=24.17.0"},"gitHead":"61df40c9c83aae72549fe4d2b4f831084dd42f8d","_npmUser":{"name":"eclecticpassions","email":"dev@eclecticpassions.net"},"repository":{"url":"git+https://github.com/eclecticpassions/indiekit-preset-hugo.git","type":"git"},"_npmVersion":"11.17.0","description":"Custom Hugo publication preset for Indiekit","directories":{},"_nodeVersion":"26.5.0","dependencies":{"plur":"^6.0.0","yaml":"^2.9.0","luxon":"^3.7.2","@iarna/toml":"^2.2.5","camelcase-keys":"^10.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/indiekit-preset-hugo_1.0.7_1784106650677_0.7038136315688215","host":"s3://npm-registry-packages-npm-production"}},"1.0.8":{"name":"@eclecticpassions/indiekit-preset-hugo","version":"1.0.8","keywords":["indiekit","indiekit-plugin","frontmatter","toml"],"author":{"url":"https://paulrobertlloyd.com","name":"Paul Robert Lloyd"},"license":"MIT","_id":"@eclecticpassions/indiekit-preset-hugo@1.0.8","maintainers":[{"name":"eclecticpassions","email":"dev@eclecticpassions.net"}],"contributors":[{"url":"https://burgeonlab.com","name":"Naty S"}],"homepage":"https://getindiekit.com","bugs":{"url":"https://github.com/eclecticpassions/indiekit-preset-hugo/issues"},"dist":{"shasum":"656062470f145755358ca9f0cbd9458e30cbbce8","tarball":"https://registry.npmjs.org/@eclecticpassions/indiekit-preset-hugo/-/indiekit-preset-hugo-1.0.8.tgz","fileCount":7,"integrity":"sha512-A/9vLox+cb0/uvAoqdypDP79ID1dSfiuEFeTBOiO/o51llhYXkYc1gKmcnMVAmsriF8Sue3Y8AGZmCk5+Dr3/g==","signatures":[{"sig":"MEUCIQCVegf55nOYsm1vp6xKI8ygOY/EhOBnI9tjHEa9acyR2AIgO3qrL4sGv9SV0BICy3eV8ze4aCpJUl7kf8rh97kQG5s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10454},"main":"index.js","type":"module","engines":{"node":">=24.17.0"},"gitHead":"7a3efc849ec502b82e04866869b60b910552dde0","_npmUser":{"name":"eclecticpassions","email":"dev@eclecticpassions.net"},"repository":{"url":"git+https://github.com/eclecticpassions/indiekit-preset-hugo.git","type":"git"},"_npmVersion":"11.17.0","description":"Custom Hugo publication preset for Indiekit","directories":{},"_nodeVersion":"26.5.0","dependencies":{"plur":"^6.0.0","yaml":"^2.9.0","@iarna/toml":"^2.2.5","camelcase-keys":"^10.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/indiekit-preset-hugo_1.0.8_1784108168889_0.057186272324047716","host":"s3://npm-registry-packages-npm-production"}},"1.0.9":{"name":"@eclecticpassions/indiekit-preset-hugo","version":"1.0.9","description":"Custom Hugo publication preset for Indiekit","type":"module","main":"index.js","homepage":"https://getindiekit.com","author":{"name":"Paul Robert Lloyd","url":"https://paulrobertlloyd.com"},"contributors":[{"name":"Naty S","url":"https://burgeonlab.com"}],"repository":{"type":"git","url":"git+https://github.com/eclecticpassions/indiekit-preset-hugo.git"},"license":"MIT","engines":{"node":">=24.17.0"},"keywords":["indiekit","indiekit-plugin","frontmatter","toml"],"bugs":{"url":"https://github.com/eclecticpassions/indiekit-preset-hugo/issues"},"dependencies":{"@iarna/toml":"^2.2.5","camelcase-keys":"^10.0.2","plur":"^6.0.0","yaml":"^2.9.0"},"publishConfig":{"access":"public"},"gitHead":"5053873cdb20edd98593f66f4c3e4b992e9e994c","_id":"@eclecticpassions/indiekit-preset-hugo@1.0.9","_nodeVersion":"26.7.0","_npmVersion":"12.0.2","dist":{"integrity":"sha512-qvPvalR0MFHDpcZ/3qbHThS61vQnLw1JFzswnZU50PzvRKaeYT1PJMRka/OCteHYO9HX8dk+xMyBXs+ynjQ/Yw==","shasum":"0cf038d67a48bd43d35da275228f578b7580da34","tarball":"https://registry.npmjs.org/@eclecticpassions/indiekit-preset-hugo/-/indiekit-preset-hugo-1.0.9.tgz","fileCount":7,"unpackedSize":10689,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGVRg7mhWeZf7LJOyU8VQYkjFBK3wXqcv4glxid4/LSIAiEArdpoUWBwHJNiFcWzE7CDmc5opIFhx6wwr9EuP+fmkFA="}]},"_npmUser":{"name":"eclecticpassions","email":"dev@eclecticpassions.net"},"directories":{},"maintainers":[{"name":"eclecticpassions","email":"dev@eclecticpassions.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/indiekit-preset-hugo_1.0.9_1786872759745_0.032148806280328346"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-13T04:50:10.336Z","modified":"2026-08-16T09:32:40.082Z","1.0.3":"2026-07-13T04:50:10.651Z","1.0.4":"2026-07-13T07:42:20.912Z","1.0.5":"2026-07-15T07:54:09.612Z","1.0.6":"2026-07-15T08:52:57.406Z","1.0.7":"2026-07-15T09:10:50.810Z","1.0.8":"2026-07-15T09:36:09.045Z","1.0.9":"2026-08-16T09:32:39.893Z"},"bugs":{"url":"https://github.com/eclecticpassions/indiekit-preset-hugo/issues"},"author":{"name":"Paul Robert Lloyd","url":"https://paulrobertlloyd.com"},"license":"MIT","homepage":"https://getindiekit.com","keywords":["indiekit","indiekit-plugin","frontmatter","toml"],"repository":{"type":"git","url":"git+https://github.com/eclecticpassions/indiekit-preset-hugo.git"},"description":"Custom Hugo publication preset for Indiekit","contributors":[{"name":"Naty S","url":"https://burgeonlab.com"}],"maintainers":[{"name":"eclecticpassions","email":"dev@eclecticpassions.net"}],"readme":"# Indiekit Plugin: preset-hugo\n\nForked from [@indiekit/preset-hugo](https://www.npmjs.com/package/@indiekit/preset-hugo).\n\n## Features\n\n1. Output unquoted date front matter (i.e. `date`, `publishDate`, `lastmod` ), instead of quoted string values.\n\n    - For example:\n\n      ```toml\n      date = 2026-07-13T15:29:23+08:00\n      ```\n\n      Instead of:\n\n      ```toml\n      date = \"2026-07-13T15:29:51+08:00\"\n      ```\n\n    - Ensure date value is a native JavaScript Date object before being stringified\n    - Modify the properties object mapping within getFrontMatter\n\n2. Rename Indiekit property name `category` to `tags` and ensure single tags are also use arrays for consistency.\n\n    - For example:\n\n      ```toml\n      tags = [ \"tag1\", \"tag2\" ]\n      tags = [ \"tag3\" ]\n      ```\n\n      Instead of:\n\n      ```toml\n      category = [ \"tag1\", \"tag2\" ]\n      category = \"tag3\"\n      ```\n\n## Install Custom Plugin\n\nI personally wasn't able to use [NPM's override](https://docs.npmjs.com/cli/v10/configuring-npm/package-json?v=true#overrides) feature to replace the existing Indiekit `preset-hugo` plugin, therefore:\n\n1. Remove existing: `npm remove @indiekit/preset-hugo`\n2. Install custom preset-hugo: `npm install github:eclecticpassions/indiekit-preset-hugo` or `npm install @eclecticpassions/indiekit-preset-hugo`\n3. Replace all existing configuration (e.g. in `indiekit.config.js`) and `package.json`, from `@indiekit/preset-hugo` to `@eclecticpassions/indiekit-preset-hugo`\n\n## Pending\n\n- Currently, `lib/post-template.js` is set up to convert dates to Asia/Hong_Kong time zone / UTC+8. I will add a config option in the future for others to set it in their Indiekit config file under the plugin settings.\n\n## Resources\n\n- [Hugo dates](https://gohugo.io/methods/page/date/)\n- [Indiekit post template](https://getindiekit.com/configuration/post-template)\n- [Indiekit Hugo publication preset plugin](https://getindiekit.com/plugins/presets/hugo)\n\n## Disclaimer\n\nLLMs were used to help generate the JavaScript code. All non-code parts (i.e. README) is written by me. Please review code before using in your Indiekit setup.\n\n---\n\n<div align=\"center\">\n\n*See below for the README of the original Indiekit `preset-hugo` plugin.*\n\n</div>\n\n---\n\n## Indiekit Publication Preset for Hugo\n\nA [Hugo](https://gohugo.io) publication preset for Indiekit.\n\n## Installation\n\n`npm install @indiekit/preset-hugo`\n\n## Usage\n\nAdd `@indiekit/preset-hugo` to your list of plug-ins, specifying options as required:\n\n```json\n{\n  \"plugins\": [\"@indiekit/preset-hugo\"],\n  \"@indiekit/preset-hugo\": {\n    \"frontMatterFormat\": \"json\"\n  }\n}\n```\n\n## Options\n\n| Option              | Type     | Description                                                                            |\n| :------------------ | :------- | :------------------------------------------------------------------------------------- |\n| `frontMatterFormat` | `string` | Front matter format to use (`json`, `toml` or `yaml`). _Optional_, defaults to `yaml`. |\n","readmeFilename":"README.md"}