Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidsneighbour/netlify-plugin-hugo-helper
A Netlify plugin with helper functions for GoHugo deploys.
https://github.com/davidsneighbour/netlify-plugin-hugo-helper
deployment gohugo netlify netlify-plugin
Last synced: 1 day ago
JSON representation
A Netlify plugin with helper functions for GoHugo deploys.
- Host: GitHub
- URL: https://github.com/davidsneighbour/netlify-plugin-hugo-helper
- Owner: davidsneighbour
- Created: 2024-03-09T11:51:36.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-08-17T08:53:35.000Z (about 1 month ago)
- Last Synced: 2024-09-23T01:07:54.115Z (5 days ago)
- Topics: deployment, gohugo, netlify, netlify-plugin
- Language: JavaScript
- Homepage:
- Size: 417 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This [Netlify build plugin](https://docs.netlify.com/integrations/build-plugins/) adds caching of [Hugo](https://gohugo.io/) resource files to your build process.
## Setup
Install the package with:
```bash
npm install --save-dev @davidsneighbour/netlify-plugin-hugo-helper
```Then add it to your `netlify.toml` file:
```toml
[[plugins]]
package = "@davidsneighbour/netlify-plugin-hugo-helper"[plugins.inputs]
debug = false
```The `inputs` section can contain the following parameters:
* `cache` - Enable caching of resources between deploys (default: true)
* `debug` - Show verbose logs and list backed-up and restored files (default: false)
* `srcdir` - Relative path to source directory in case you use Hugo's "--s" option (default: '')To configure the plugin for a certain deploy context, you can use the `context` subsection:
```toml
[[context.production.plugins]]
package = "@davidsneighbour/netlify-plugin-hugo-helper"[context.production.plugins.inputs]
debug = false
```