diff options
author | somrat-gyver <somrat.gyver@gmail.com> | 2020-07-07 13:43:58 +0300 |
---|---|---|
committer | somrat-gyver <somrat.gyver@gmail.com> | 2020-07-07 13:43:58 +0300 |
commit | 9cf36415a0accebd2e85587c3e8cceded29ea241 (patch) | |
tree | d206f5d81ed825c25e80e4d1e83ca4f62ed2633e | |
parent | 969590b935ce90eec85d519ff8e88c2c22e185d7 (diff) |
added forestry settings for project
-rw-r--r-- | exampleSite/.forestry/front_matter/templates/author.yml | 23 | ||||
-rw-r--r-- | exampleSite/.forestry/front_matter/templates/post.yml | 8 | ||||
-rw-r--r-- | exampleSite/.forestry/settings.yml | 67 |
3 files changed, 66 insertions, 32 deletions
diff --git a/exampleSite/.forestry/front_matter/templates/author.yml b/exampleSite/.forestry/front_matter/templates/author.yml new file mode 100644 index 0000000..3f38fb6 --- /dev/null +++ b/exampleSite/.forestry/front_matter/templates/author.yml @@ -0,0 +1,23 @@ +--- +label: Author +hide_body: false +fields: +- type: text + name: title + label: title +- type: text + name: image + label: image +- type: text + name: email + label: email +- type: field_group_list + name: social + label: social + fields: + - type: text + name: icon + label: icon + - type: text + name: link + label: link diff --git a/exampleSite/.forestry/front_matter/templates/post.yml b/exampleSite/.forestry/front_matter/templates/post.yml index 54a2365..a13e6b4 100644 --- a/exampleSite/.forestry/front_matter/templates/post.yml +++ b/exampleSite/.forestry/front_matter/templates/post.yml @@ -8,9 +8,17 @@ fields: - type: datetime name: date label: date +- type: text + name: author + label: author + description: 'Ex: John Doe' +- type: file + name: image_webp + label: image webp - type: file name: image label: image - type: text name: description label: description + description: meta description diff --git a/exampleSite/.forestry/settings.yml b/exampleSite/.forestry/settings.yml index d98a0a6..6760d2c 100644 --- a/exampleSite/.forestry/settings.yml +++ b/exampleSite/.forestry/settings.yml @@ -4,48 +4,51 @@ auto_deploy: false admin_path: '' webhook_url: sections: -- type: document - path: exampleSite/data/homepage.yml - label: Homepage - match: "**/*" - type: heading label: Blog Post -- type: document - path: exampleSite/content/blog/_index.md - label: Blog Page - type: directory - path: exampleSite/content/blog - label: Blog Post + path: exampleSite/content/english/blog + label: Post (en) create: documents - match: "*" - exclude: _index.md + match: "**/*" + new_doc_ext: '20191203072044' templates: - post -- type: heading - label: Portfolio -- type: document - path: exampleSite/content/portfolio/_index.md - label: Portfolio Page +- type: directory + path: exampleSite/content/french/blog + label: Post (fr) + create: documents match: "**/*" -- type: document - path: exampleSite/data/portfolio.yml - label: Portfolio Items + templates: + - post - type: heading - label: About -- type: document - path: exampleSite/content/about/_index.md - label: About Page + label: Author +- type: directory + path: exampleSite/content/english/author + label: Author (en) + create: documents match: "**/*" -- type: document - path: exampleSite/data/about.yml - label: About Data + templates: + - author +- type: directory + path: exampleSite/content/french/author + label: Author (fr) + create: documents + match: "**/*" + templates: + - author - type: heading - label: Others Page + label: Data - type: directory - path: exampleSite/content/contact - label: Contact - create: none - match: "*" + path: exampleSite/data + label: Homepage + create: all + match: "**/*" +- type: directory + path: exampleSite/i18n + label: i18n + create: documents + match: "**/*" - type: heading label: Configuration - type: directory @@ -69,4 +72,4 @@ build: working_dir: "/srv" instant_preview_command: hugo server -D -E -F --port 8080 --bind 0.0.0.0 --renderToDisk -d public -version: 0.69.0
\ No newline at end of file +version: 0.58.2 |