hugo-academic-mirror/modules/blox-plugin-netlify
2023-11-09 14:58:28 +00:00
..
src/layouts fix: links (cont.) 2023-11-09 14:58:28 +00:00
config.yaml fix: links 2023-11-07 23:09:38 +00:00
go.mod fix: links 2023-11-07 23:09:38 +00:00
README.md fix: links (cont.) 2023-11-09 14:58:28 +00:00

Hugo Plugin for Netlify

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.

Install

  1. Edit config/_default/config.yaml to install the blox-plugin-netlify module:

    module:
      imports:
        - path: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify
    
  2. Tell Hugo to generate the Netlify headers and redirects files by adding them to Hugo's outputs config. For example,

    outputs:
      home: [..., headers, redirects]
    

Configure