A build plugin to integrate your Hugo site seamlessly with Netlify.
The plugin automatically generates a _headers
and _redirects
file at the root of the public folder to configure HTTP headers and redirects on Netlify.
By default, the plugin will help secure your site with some common security headers. You can easily add or replace headers through the plugin config.
-
Edit
config/_default/config.yaml
to install theblox-plugin-netlify
module:module: imports: - path: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify
-
Tell Hugo to generate the Netlify
headers
andredirects
files by adding them to Hugo'soutputs
config. For example,outputs: home: [..., headers, redirects]