Skip to content

Commit

Permalink
Enable index, follow in the production website
Browse files Browse the repository at this point in the history
The website header partial sets the meta index, follow if the
HUGO_ENV is set to production, and no index no follow otherwise.

Change the HUGO_ENV to be production for the production environment.

Related to #191

Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
  • Loading branch information
afrittoli authored and tekton-robot committed Nov 26, 2020
1 parent 9f3f9ec commit c9b47bf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@
[build.environment]
HUGO_VERSION = "0.53"

[dev]
command = "make serve URL=http://localhost:8888/"
[context.production.environment]
HUGO_ENV = "production"

[context.deploy-preview]
HUGO_ENV = "staging"
command = "make preview-build"

[context.branch-deploy]
command = "make preview-build"



[dev]
command = "make serve URL=http://localhost:8888/"

0 comments on commit c9b47bf

Please sign in to comment.