commit 3959a82b74bfd0a8dc5003213bf38aaaec49825e Author: xyvs Date: Sun Jun 14 18:41:28 2020 -0500 Post support and default template diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1377554 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.swp diff --git a/default.hbs b/default.hbs new file mode 100644 index 0000000..d4a9128 --- /dev/null +++ b/default.hbs @@ -0,0 +1,119 @@ + + + + + + {{meta_title}} + + + {{ghost_header}} + + +
+ +

{{@blog.title}}

+
+

{{@blog.description}}

+
+
+ {{{body}}} +
+ + {{ghost_foot}} + diff --git a/index.hbs b/index.hbs new file mode 100644 index 0000000..98c99b2 --- /dev/null +++ b/index.hbs @@ -0,0 +1,13 @@ +{{!< default}} +
+ {{#foreach posts}} +
+ {{title}} + +
+ {{/foreach}} +
+ +{{pagination}} diff --git a/package.json b/package.json new file mode 100644 index 0000000..51d979e --- /dev/null +++ b/package.json @@ -0,0 +1,17 @@ +{ + "name": "aboringhostheme", + "description": "A boring theme for Ghost", + "version": "0.1.0", + "keywords": ["ghost-theme"], + "engines": { + "ghost-api": "v3" + }, + "license": "MIT", + "author": { + "email": "fran@xyvs.io" + }, + "config": { + "posts_per_page": 25, + "image_sizes": {} + } +} diff --git a/post.hbs b/post.hbs new file mode 100644 index 0000000..dc53895 --- /dev/null +++ b/post.hbs @@ -0,0 +1,15 @@ +{{!< default }} +
+ {{#post}} +
+
+

{{title}}

+

+ Posted by {{author}} on {{date}} +

+
+ {{title}} +
{{content}}
+
+ {{/post}} +