From 8ea9fb75301571a7831050ad03877e86ae332d84 Mon Sep 17 00:00:00 2001 From: somrat Date: Wed, 11 Dec 2019 11:31:32 +0600 Subject: [PATCH] modified netlify and forestry --- exampleSite/.forestry/settings.yml | 16 ++++++++-------- exampleSite/netlify.toml | 30 ------------------------------ netlify.toml | 7 +++++++ 3 files changed, 15 insertions(+), 38 deletions(-) delete mode 100644 exampleSite/netlify.toml create mode 100644 netlify.toml diff --git a/exampleSite/.forestry/settings.yml b/exampleSite/.forestry/settings.yml index 562af30562..6760d2ce9c 100644 --- a/exampleSite/.forestry/settings.yml +++ b/exampleSite/.forestry/settings.yml @@ -7,7 +7,7 @@ sections: - type: heading label: Blog Post - type: directory - path: content/english/blog + path: exampleSite/content/english/blog label: Post (en) create: documents match: "**/*" @@ -15,7 +15,7 @@ sections: templates: - post - type: directory - path: content/french/blog + path: exampleSite/content/french/blog label: Post (fr) create: documents match: "**/*" @@ -24,14 +24,14 @@ sections: - type: heading label: Author - type: directory - path: content/english/author + path: exampleSite/content/english/author label: Author (en) create: documents match: "**/*" templates: - author - type: directory - path: content/french/author + path: exampleSite/content/french/author label: Author (fr) create: documents match: "**/*" @@ -40,24 +40,24 @@ sections: - type: heading label: Data - type: directory - path: data + path: exampleSite/data label: Homepage create: all match: "**/*" - type: directory - path: i18n + path: exampleSite/i18n label: i18n create: documents match: "**/*" - type: heading label: Configuration - type: directory - path: '' + path: exampleSite label: Configuration create: all match: "*.toml" new_doc_ext: toml -upload_dir: static/images +upload_dir: exampleSite/static/images public_path: "/images" front_matter_path: '' use_front_matter_path: false diff --git a/exampleSite/netlify.toml b/exampleSite/netlify.toml deleted file mode 100644 index 3026e47e39..0000000000 --- a/exampleSite/netlify.toml +++ /dev/null @@ -1,30 +0,0 @@ -[build] -publish = "public" -command = "hugo --gc --minify" - -[context.production.environment] -HUGO_VERSION = "0.59.0" -HUGO_ENV = "production" -HUGO_ENABLEGITINFO = "true" - -[context.split1] -command = "hugo --gc --minify --enableGitInfo" - -[context.split1.environment] -HUGO_VERSION = "0.59.0" -HUGO_ENV = "production" - -[context.deploy-preview] -command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL" - -[context.deploy-preview.environment] -HUGO_VERSION = "0.59.0" - -[context.branch-deploy] -command = "hugo --gc --minify -b $DEPLOY_PRIME_URL" - -[context.branch-deploy.environment] -HUGO_VERSION = "0.59.0" - -[context.next.environment] -HUGO_ENABLEGITINFO = "true" diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000000..68eea107c7 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,7 @@ +[build] + publish = "exampleSite/public" + command = "cd exampleSite && hugo --gc --themesDir ../.." + +[build.environment] + HUGO_VERSION = "0.60.1" + HUGO_THEME = "repo" \ No newline at end of file