From 9117f54b39cbede9cf5bf0ea2854d5a3e0052df0 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Fri, 30 Apr 2021 12:17:24 -0700 Subject: [PATCH] Remove code toggle from netlify.toml Closes #1421 --- .../en/hosting-and-deployment/hosting-on-netlify.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/en/hosting-and-deployment/hosting-on-netlify.md b/content/en/hosting-and-deployment/hosting-on-netlify.md index 74c54b047..9dfc010af 100644 --- a/content/en/hosting-and-deployment/hosting-on-netlify.md +++ b/content/en/hosting-and-deployment/hosting-on-netlify.md @@ -65,17 +65,17 @@ You can [set Hugo version](https://www.netlify.com/blog/2017/04/11/netlify-plus- For production: -{{< code-toggle file="netlify" >}} +{{< code file="netlify.toml" codeLang="toml" >}} [context.production.environment] - HUGO_VERSION = "0.53" -{{< /code-toggle >}} + HUGO_VERSION = "0.82.1" +{{< /code >}} For testing: -``` +{{< code file="netlify.toml" codeLang="toml" >}} [context.deploy-preview.environment] - HUGO_VERSION = "0.53" -``` + HUGO_VERSION = "0.82.1" +{{< /code >}} The Netlify configuration file can be a little hard to understand and get right for the different environment, and you may get some inspiration and tips from this site's `netlify.toml`: