From ef92811f7b637dcaaa9b5d16fe9763fa6d641e9f Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Mon, 25 Apr 2022 12:00:37 -0500 Subject: [PATCH] update netlify config --- config/drafts/config.toml | 2 ++ config/drafts/params.toml | 1 + netlify.toml | 15 +++++++++++++-- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 config/drafts/config.toml create mode 100644 config/drafts/params.toml diff --git a/config/drafts/config.toml b/config/drafts/config.toml new file mode 100644 index 0000000..5f8b066 --- /dev/null +++ b/config/drafts/config.toml @@ -0,0 +1,2 @@ +baseurl = "https://drafts.virtuallypotato.com/" # Include trailing slash + diff --git a/config/drafts/params.toml b/config/drafts/params.toml new file mode 100644 index 0000000..5946a26 --- /dev/null +++ b/config/drafts/params.toml @@ -0,0 +1 @@ +comments = false \ No newline at end of file diff --git a/netlify.toml b/netlify.toml index 26639c3..3f97ec2 100644 --- a/netlify.toml +++ b/netlify.toml @@ -2,10 +2,21 @@ publish = "public" [build.environment] - HUGO_VERSION = "0.89.4" + HUGO_VERSION = "0.96.0" [context.production] command = "hugo" -[context.branch-deploy] +[context.staging] command = "hugo --environment staging" + [[headers]] + for = "/*" + [headers.values] + X-Robots-Tag = "noindex" + +[context.drafts] + command = "hugo --environment drafts" + [[headers]] + for = "/*" + [headers.values] + X-Robots-Tag = "noindex" \ No newline at end of file