From 5c8aea9277f99febb1cf8d3ec7d4184a80bf53e6 Mon Sep 17 00:00:00 2001 From: slonkazoid Date: Wed, 29 Jan 2025 16:35:18 +0300 Subject: [PATCH] add new templates --- templates/footer.hbs | 4 ++-- templates/index.hbs | 22 +++++++--------------- templates/post.hbs | 2 +- templates/post_list.hbs | 10 ++++++++++ templates/posts.hbs | 23 +++++++++++++++++++++++ templates/title.hbs | 4 ++-- 6 files changed, 45 insertions(+), 20 deletions(-) create mode 100644 templates/post_list.hbs create mode 100644 templates/posts.hbs diff --git a/templates/footer.hbs b/templates/footer.hbs index 11ef473..df63c58 100644 --- a/templates/footer.hbs +++ b/templates/footer.hbs @@ -1,10 +1,10 @@ running {{bingus_info.name}} v{{bingus_info.version}} -{{#if rendered_in}} +{{#if perf}} - {{/if}} -{{#each rendered_in}} +{{#each perf}} {{#if (eq @key "Rendered")}} parsed meta and diff --git a/templates/index.hbs b/templates/index.hbs index 99dfc29..dfcc49a 100644 --- a/templates/index.hbs +++ b/templates/index.hbs @@ -2,17 +2,17 @@ - - - + + + {{#if (ne color null)}} {{/if}} - {{title}} + {{style.title}} {{#if rss}} - + {{/if}} {{#if js}} @@ -20,7 +20,7 @@ {{/if}} - +
{{>title}}

posts

@@ -36,15 +36,7 @@ {{/if}}
- {{#each posts}} -
- {{title}} - -
- {{description}}
- {{>post_table post style=@root.style}} -
- {{else}} there are no posts right now. check back later! {{/each}} + {{>post_list}}
diff --git a/templates/post.hbs b/templates/post.hbs index 41b99e2..84f2d23 100644 --- a/templates/post.hbs +++ b/templates/post.hbs @@ -46,7 +46,7 @@ back to home
- {{{rendered}}} + {{{body}}}