diff options
| author | Mathias Biilmann Christensen <info@mathias-biilmann.net> | 2017-12-07 00:21:51 -0800 |
|---|---|---|
| committer | Benaiah Mischenko <benaiah@mischenko.com> | 2017-12-07 01:43:09 -0800 |
| commit | d91206659bd17c190e2940a2c564f371cafc7ebc (patch) | |
| tree | 3ae40f7a9c2668fb4ffaaa7fdd2746e8e5ccb267 /src/js/cms.js | |
| parent | 3dc23ec6642f8238a9bb3e618544108cddcf2791 (diff) | |
Update hugo and content structure; add home page to CMS
This updates to hugo v0.31
It also adapts the content model to follow the convention for sections
with _index.md files and makes the home page a fully editable section
Diffstat (limited to 'src/js/cms.js')
| -rw-r--r-- | src/js/cms.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/js/cms.js b/src/js/cms.js index 3f018b9..ad298dd 100644 --- a/src/js/cms.js +++ b/src/js/cms.js @@ -1,6 +1,7 @@ import React from "react"; import CMS from "netlify-cms"; +import HomePreview from "./cms-preview-templates/home"; import PostPreview from "./cms-preview-templates/post"; import ProductsPreview from "./cms-preview-templates/products"; import ValuesPreview from "./cms-preview-templates/values"; @@ -20,6 +21,7 @@ class ColorControl extends React.Component { } CMS.registerPreviewStyle("/css/main.css"); +CMS.registerPreviewTemplate("home", HomePreview); CMS.registerPreviewTemplate("post", PostPreview); CMS.registerPreviewTemplate("products", ProductsPreview); CMS.registerPreviewTemplate("values", ValuesPreview); |
