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