Browse Source

modified netlify and forestry

tags/v1.0.0
somrat 5 years ago
parent
commit
8ea9fb7530
3 changed files with 15 additions and 38 deletions
  1. 8
    8
      exampleSite/.forestry/settings.yml
  2. 0
    30
      exampleSite/netlify.toml
  3. 7
    0
      netlify.toml

+ 8
- 8
exampleSite/.forestry/settings.yml View File

@@ -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

+ 0
- 30
exampleSite/netlify.toml View File

@@ -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"

+ 7
- 0
netlify.toml View File

@@ -0,0 +1,7 @@
[build]
publish = "exampleSite/public"
command = "cd exampleSite && hugo --gc --themesDir ../.."
[build.environment]
HUGO_VERSION = "0.60.1"
HUGO_THEME = "repo"

Loading…
Cancel
Save