Skip to content

Commit

Permalink
update templates to fit new sissi-core version
Browse files Browse the repository at this point in the history
  • Loading branch information
alina-beck committed Jun 5, 2019
1 parent 6565dfa commit 1f330b8
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 45 deletions.
43 changes: 12 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sissi-cli",
"version": "0.1.1",
"version": "0.1.2",
"description": "Command line interface for sissi (simple static sites)",
"license": "GPL-3.0-or-later",
"author": "A square",
Expand Down
9 changes: 6 additions & 3 deletions src/templates/content.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"_id": "xorh94f",
"_items": ["mu3v3n2", "3qoeqgy"],
"_type": "standard",
"path": ""
"_path": ""
}
},
<%_ } else { _%>
Expand All @@ -23,7 +23,7 @@
"3qoeqgy"
],
"_type": "standard",
"path": "",
"_path": "",
"title": "About sissi"
},
"3nsk031": {
Expand All @@ -32,7 +32,7 @@
"i3ojloy"
],
"_type": "standard",
"path": "about-you",
"_path": "about-you",
"title": "About You"
}
},
Expand All @@ -42,19 +42,22 @@
"i3ojloy": {
"_id": "i3ojloy",
"_type": "standard",
"_path": "hey-i-like-you",
"title": "Hey, I like you",
"sectionBody": "<p>Has anybody told you that you&#39;re awesome today? You&#39;re awesome! And you&#39;re doing great work. You being here and reading this proves it.<\/p>\n<p>(Ok, maybe not the reading part. Time to write your own stuff now, don&#39;t you think?)<\/p>\n"
},
<%_ } _%>
"mu3v3n2": {
"_id": "mu3v3n2",
"_type": "standard",
"_path": "sissi-pleased-to-meet-you",
"title": "sissi, pleased to meet you.",
"sectionBody": "<p>I&#39;m your simple static sites generator and happy to help if you need me. Please visit me over at <a href=\"https:\/\/github.com\/square-a\/sissi\">Github<\/a> for support.<\/p>\n<p>Now, let&#39;s get to work and have some fun!<\/p>\n"
},
"3qoeqgy": {
"_id": "3qoeqgy",
"_type": "standard",
"_path": "my-folks",
"title": "My folks",
"sectionBody": "<p><img src=\"\/images\/a-square.svg\" alt=\"A square logo\"><\/p>\n<p>While we&#39;re at introductions \u2013 why not say hi to my lovely creators at <a href=\"https:\/\/a-square.eu\">A square<\/a>?<\/p>\n"
}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/src/components/Page.js.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const Page = ({
<nav className='sissi-nav'>
{pages.map(navPage => (
<SissiLink
key={navPage.path}
to={`/${navPage.path}`}
key={navPage._path}
to={`/${navPage._path}`}
className='sissi-nav-link'
activeClassName='sissi-nav-link--active'
exact
Expand Down
9 changes: 1 addition & 8 deletions src/templates/structure.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@
"language": "en"
},
"fields": {
<%_ if (!IS_SINGLE_PAGE) { _%>
"path": {
"label": "Path",
"placeholder": "about-me",
"type": "string"
},
<%_ } _%>
"logo": {
"label": "Logo",
"type": "image"
Expand Down Expand Up @@ -40,7 +33,7 @@
"pages": {
"standard": {
"label": "Standard page",
"fields": ["title", "path"],
"fields": ["title"],
"maxItems": 4,
"minItems": 1
}
Expand Down

0 comments on commit 1f330b8

Please sign in to comment.