diff --git a/author.hbs b/author.hbs index f7093eb..f9e7c14 100644 --- a/author.hbs +++ b/author.hbs @@ -61,26 +61,9 @@ {{/author}}
-
- {{#foreach posts}} - {{> "post-card"}} - {{/foreach}} - - {{#if pagination.next}} -
-
- {{/if}} -
- -
-
-

Loading more posts...

-
+ {{#if posts}} + {{> "post-feed"}} + {{else}} +

No posts found.

+ {{/if}}
diff --git a/index.hbs b/index.hbs index 8deba51..2b0b2b3 100644 --- a/index.hbs +++ b/index.hbs @@ -7,29 +7,7 @@
{{#if posts}} -
- {{#foreach posts}} - {{> "post-card"}} - {{/foreach}} - - {{#if pagination.next}} -
-
- {{/if}} -
- -
-
-

Loading more posts...

-
- + {{> "post-feed"}} {{else}}

No posts found.

{{/if}} diff --git a/partials/post-feed.hbs b/partials/post-feed.hbs new file mode 100644 index 0000000..ddf1b03 --- /dev/null +++ b/partials/post-feed.hbs @@ -0,0 +1,22 @@ +
+ {{#foreach posts}} + {{> "post-card"}} + {{/foreach}} + + {{#if pagination.next}} +
+
+ {{/if}} +
+ +
+
+

Loading more posts...

+
diff --git a/tag.hbs b/tag.hbs index 55c9426..799cfa2 100644 --- a/tag.hbs +++ b/tag.hbs @@ -18,29 +18,7 @@
{{#if posts}} -
- {{#foreach posts}} - {{> "post-card"}} - {{/foreach}} - - {{#if pagination.next}} -
-
- {{/if}} -
- -
-
-

Loading more posts...

-
- + {{> "post-feed"}} {{else}}

No posts found.

{{/if}}