-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rebase onto Victor Hugo, update all the things 🎉
- Loading branch information
Showing
11 changed files
with
3,452 additions
and
13,436 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
{{ define "main" }} | ||
|
||
<h1>Nothing Here...</h1> | ||
<h2 style="font-size: 120px; margin:0;">💩</h2> | ||
<h3><a href="{{ "/" | relURL }}">Go Home</a></h3> | ||
|
||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,19 @@ | ||
import React from "react"; | ||
import CMS from "netlify-cms"; | ||
import CMS from "netlify-cms-app"; | ||
|
||
// Import main site styles as a string to inject into the CMS preview pane | ||
import styles from "!to-string-loader!css-loader!postcss-loader!sass-loader!../css/main.css"; | ||
|
||
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"; | ||
import ContactPreview from "./cms-preview-templates/contact"; | ||
|
||
|
||
// Example of creating a custom color widget | ||
class ColorControl extends React.Component { | ||
render() { | ||
return <input | ||
style={{height: "80px"}} | ||
type="color" | ||
value={this.props.value} | ||
onInput={(e) => this.props.onChange(e.target.value)} | ||
/>; | ||
} | ||
} | ||
|
||
CMS.registerPreviewStyle("/css/main.css"); | ||
CMS.registerPreviewStyle(styles, { raw: true }); | ||
CMS.registerPreviewTemplate("home", HomePreview); | ||
CMS.registerPreviewTemplate("post", PostPreview); | ||
CMS.registerPreviewTemplate("products", ProductsPreview); | ||
CMS.registerPreviewTemplate("values", ValuesPreview); | ||
CMS.registerPreviewTemplate("contact", ContactPreview); | ||
CMS.registerWidget("color", ColorControl); | ||
CMS.init(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.