From 3959a82b74bfd0a8dc5003213bf38aaaec49825e Mon Sep 17 00:00:00 2001 From: xyvs Date: Sun, 14 Jun 2020 18:41:28 -0500 Subject: [PATCH] Post support and default template --- .gitignore | 1 + default.hbs | 119 +++++++++++++++++++++++++++++++++++++++++++++++++++ index.hbs | 13 ++++++ package.json | 17 ++++++++ post.hbs | 15 +++++++ 5 files changed, 165 insertions(+) create mode 100644 .gitignore create mode 100644 default.hbs create mode 100644 index.hbs create mode 100644 package.json create mode 100644 post.hbs 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}} +