edit blog

This commit is contained in:
2024-08-19 13:34:06 +02:00
parent 92ebcbd49f
commit daa7ab4e75
11 changed files with 97 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ use{% block content %}
{% endif %}
</h2>
<div>
<div class="mt-3 grid gap-5 max-w-lg mx-auto md:grid-cols-2 lg:grid-cols-3 lg:max-w-none">
<div class="mt-3 grid gap-6 max-w-lg mx-auto grid-cols-1 lg:grid-cols-3 lg:max-w-none">
{%- for post in paginator.pages %}
{% if not post.extra.hidden %}
{% include "partials/postCard.html" %}

View File

@@ -12,7 +12,7 @@
{% if post.extra.imgPath %}
{% set img_url = get_url(path='/' ~ post.relative_path | replace(from='_', to='-') | replace(from='index.md', to=post.extra.imgPath)) %}
<div class="flex-shrink-0">
<img class="h-24 w-full object-cover" src="{{ img_url }}" alt="{{ post.title ~ ' Picture' }}" />
<img class="h-30 w-full object-cover" src="{{ img_url }}" alt="{{ post.title ~ ' Picture' }}" />
</div>
{% endif %}