From 3bc6f137d074b7e9ae3a277bd80c096c8102f509 Mon Sep 17 00:00:00 2001 From: trex22 Date: Sun, 14 Oct 2018 19:12:20 +0200 Subject: [PATCH 1/3] update this theme to handle Hubpress --- tag.hbs | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ theme.json | 9 +++++++++ 2 files changed, 63 insertions(+) create mode 100644 tag.hbs create mode 100644 theme.json diff --git a/tag.hbs b/tag.hbs new file mode 100644 index 00000000..24b6330e --- /dev/null +++ b/tag.hbs @@ -0,0 +1,54 @@ +{{!< default}} + +{{! The comment above "< default" means - insert everything in this file into + the {body} of the default.hbs template, which contains our header/footer. }} + +{{! The big featured header on the homepage, with the site logo and description }} + + +{{! The main content area on the homepage }} +
+ + {{! Each post will be output using this markup }} + {{#foreach posts}} + +
+
+ +

{{{title}}}

+ + +
+
+

{{excerpt}}…

+
+
+ + {{/foreach}} + + {{!! After all the posts, we have the previous/next pagination links }} + {{pagination}} + + +
diff --git a/theme.json b/theme.json new file mode 100644 index 00000000..cf960d24 --- /dev/null +++ b/theme.json @@ -0,0 +1,9 @@ +{ + "files": { + "default": "default.hbs", + "index": "index.hbs", + "post": "post.hbs", + "tag": "tag.hbs" + }, + "version":"1.0.0" +} From d9cafed56afdb3ea33b95916f4cc27578f4ea500 Mon Sep 17 00:00:00 2001 From: trex22 Date: Sun, 14 Oct 2018 19:16:37 +0200 Subject: [PATCH 2/3] added more compatibility with hubpress --- page.hbs | 22 ++++++++++++++++++++++ pagination.hbs | 9 +++++++++ theme.json | 4 +++- 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 page.hbs create mode 100644 pagination.hbs diff --git a/page.hbs b/page.hbs new file mode 100644 index 00000000..7c9e31e2 --- /dev/null +++ b/page.hbs @@ -0,0 +1,22 @@ +{{!< default}} + +{{! This is a page template. A page outputs content just like any other post, and has all the same + attributes by default, but you can also customise it to behave differently if you prefer. }} + +
+ +
+ + {{#post}} + +

{{{title}}}

+ +
+ {{content}} +
+ + {{/post}} + +
+ +
diff --git a/pagination.hbs b/pagination.hbs new file mode 100644 index 00000000..7f16ae6f --- /dev/null +++ b/pagination.hbs @@ -0,0 +1,9 @@ + diff --git a/theme.json b/theme.json index cf960d24..3c263187 100644 --- a/theme.json +++ b/theme.json @@ -2,8 +2,10 @@ "files": { "default": "default.hbs", "index": "index.hbs", + "page": "page.hbs", "post": "post.hbs", - "tag": "tag.hbs" + "tag": "tag.hbs", + "pagination": "pagination.hbs" }, "version":"1.0.0" } From f5478b6c9a05fc9e1201c69d288b2e666ba54ed4 Mon Sep 17 00:00:00 2001 From: trex22 Date: Sun, 14 Oct 2018 19:18:39 +0200 Subject: [PATCH 3/3] updated theme version --- theme.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme.json b/theme.json index 3c263187..29e3fbb6 100644 --- a/theme.json +++ b/theme.json @@ -7,5 +7,5 @@ "tag": "tag.hbs", "pagination": "pagination.hbs" }, - "version":"1.0.0" + "version":"0.1.2" }