Update from Forestry.io - Updated Forestry configuration
nichlas@itsnwa.com
committed Aug 09, 2018
commit f11364082afa9a90dbe5934bc40837a5231cfc90
Showing 4
changed files with
57 additions
and 14 deletions
.forestry/front_matter/templates/journal.yml
+4
-3
| @@ | @@ -1,5 +1,7 @@ |
| --- | |
| + | label: journal |
| hide_body: false | |
| + | is_partial: false |
| fields: | |
| - name: title | |
| default: '' | |
| @@ | @@ -10,7 +12,7 @@ fields: |
| default: '' | |
| label: Thumbnail | |
| hidden: false | |
| - | type: fileupload |
| + | type: boolean |
| - name: excerpt | |
| default: '' | |
| label: Excerpt | |
| @@ | @@ -25,5 +27,4 @@ fields: |
| default: [] | |
| label: Categories | |
| hidden: false | |
| - | type: tags |
| - | --- |
| + | type: boolean |
.forestry/front_matter/templates/works.yml
+4
-3
| @@ | @@ -1,5 +1,7 @@ |
| --- | |
| + | label: works |
| hide_body: false | |
| + | is_partial: false |
| fields: | |
| - name: title | |
| default: '' | |
| @@ | @@ -10,7 +12,7 @@ fields: |
| default: '' | |
| label: Thumbnail | |
| hidden: false | |
| - | type: fileupload |
| + | type: boolean |
| - name: publishDate | |
| default: '' | |
| label: Date | |
| @@ | @@ -22,8 +24,7 @@ fields: |
| hidden: false | |
| type: list | |
| - name: year | |
| - | default: null |
| + | default: |
| label: Year | |
| hidden: false | |
| type: number | |
| - | --- |
.forestry/settings.yml
+12
-8
| @@ | @@ -1,21 +1,25 @@ |
| --- | |
| - | upload_path: "/uploads/" |
| - | frontmatter_file_url_template: "/uploads/" |
| - | body_file_url_template: "/uploads/" |
| new_page_extension: md | |
| auto_deploy: true | |
| admin_path: "/admin" | |
| + | webhook_url: |
| sections: | |
| - | |
| - | - path: works |
| + | - type: directory |
| + | path: works |
| label: Works | |
| create: all | |
| + | match: "**/*" |
| templates: | |
| - works | |
| - | |
| - | - path: journal |
| + | - type: directory |
| + | path: journal |
| label: Journal | |
| create: all | |
| + | match: "**/*" |
| templates: | |
| - journal | |
| - | --- |
| + | upload_dir: uploads |
| + | public_path: "/uploads" |
| + | front_matter_path: '' |
| + | use_front_matter_path: false |
| + | file_template: ":filename:" |
admin/index.html
+37
-0
| @@ | @@ -0,0 +1,37 @@ |
| + | <!-- forestryio: ignore; forestryio: admin --> |
| + | <!DOCTYPE html> |
| + | <html lang="en"> |
| + | <head> |
| + | <meta charset="utf-8"> |
| + | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| + | <title>Admin</title> |
| + | <meta name="description" content=" " /> |
| + | <meta name="author" content=" " /> |
| + | <meta name="HandheldFriendly" content="true" /> |
| + | <meta name="MobileOptimized" content="320" /> |
| + | <!-- Use maximum-scale and user-scalable at your own risk. It disables pinch/zoom. Think about usability/accessibility before including.--> |
| + | <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" /> |
| + | |
| + | <link rel="stylesheet" href="http://localhost:1337/build/main.css" /> |
| + | |
| + | <!-- Google font --> |
| + | <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet"> |
| + | |
| + | <!-- Fort awesome icon kit --> |
| + | <script src="https://use.fortawesome.com/b6f38602.js"></script> |
| + | |
| + | </head> |
| + | <body> |
| + | <div id="app"> |
| + | |
| + | </div> |
| + | <script id="admin-config-script" type="text/javascript"> |
| + | var env = { |
| + | siteId: "saktvfj-zbmthq", |
| + | local: false |
| + | }; |
| + | </script> |
| + | <script type="application/javascript" src="http://localhost:1337/build/forestry.js"></script> |
| + | |
| + | </body> |
| + | </html> |