Skip to content

Commit

Permalink
added forestry settings for project
Browse files Browse the repository at this point in the history
  • Loading branch information
somrat-gyver committed Jul 7, 2020
1 parent 969590b commit 9cf3641
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 32 deletions.
23 changes: 23 additions & 0 deletions exampleSite/.forestry/front_matter/templates/author.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions exampleSite/.forestry/front_matter/templates/post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
67 changes: 35 additions & 32 deletions exampleSite/.forestry/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
version: 0.58.2

0 comments on commit 9cf3641

Please sign in to comment.