mirror of
https://github.com/tiennm99/hugo-blox-builder.git
synced 2026-08-16 14:23:00 +00:00
Migrate site.Data → hugo.Data (42 occurrences), site.IsMultiLingual → hugo.IsMultilingual, and site.AllPages → hugo.Sites nested range. Simplify Netlify redirects template to use pre-processed aliases instead of relLangURL per gohugoio/hugo#14408.
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
-
Edit
config/_default/config.yamlto install the Netlify integration module:module: imports: - path: github.com/HugoBlox/kit/modules/integrations/netlify -
Tell Hugo to generate the Netlify
headersandredirectsfiles by adding them to Hugo'soutputsconfig. For example,outputs: home: [..., headers, redirects]