From 43644c6666d2dbe9ff0cb1c83982e444b4350208 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=A4schke?= Date: Fri, 26 Jul 2024 13:19:23 +0200 Subject: [PATCH] rendering posts properly --- _includes/post.md | 22 ++++++++++++++++++++++ _includes/tag_index_page.md | 10 ++++++---- _layouts/home.html | 20 +------------------- 3 files changed, 29 insertions(+), 23 deletions(-) create mode 100644 _includes/post.md diff --git a/_includes/post.md b/_includes/post.md new file mode 100644 index 0000000..1667751 --- /dev/null +++ b/_includes/post.md @@ -0,0 +1,22 @@ +--- +title: Post +--- +
  • +
    + {%- if post.image -%} + + {%- endif -%} +
    +
    + {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%} + +

    + + {{ post.title | escape }} + +

    + {%- if site.show_excerpts -%} + {{ post.excerpt }} + {%- endif -%} +
    +
  • diff --git a/_includes/tag_index_page.md b/_includes/tag_index_page.md index 3f6717f..4ddc0dd 100644 --- a/_includes/tag_index_page.md +++ b/_includes/tag_index_page.md @@ -2,8 +2,10 @@ layout: default --- -

    {{ tag }} Posts

    +

    {{ tag }} posts

    -{% for post in tagged_posts %} - {{ post.title }} -{% endfor %} + diff --git a/_layouts/home.html b/_layouts/home.html index 909d29a..06049dc 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -13,25 +13,7 @@

    {{ page.title }}

    {{ page.list_title | default: "Posts" }}