Compare commits

...

2 Commits

2 changed files with 13 additions and 4 deletions

View File

@ -1,8 +1,8 @@
<div class="col"> <div class="col">
<div class="card shadow-sm"> <div class="card shadow-sm">
{% if this.title and this.title|length >= 1 %} {% if this.title and this.title|length >= 1 and not this.headline %}
<div class="card-header position-relative"> <div class="card-header position-relative">
<span class="flex">{{ this.title }}</span> {{ this.title }}
<a <a
href="#" href="#"
class="btn btn-link float-end" class="btn btn-link float-end"
@ -22,9 +22,18 @@
/> />
{% if this.description and this.description|length >= 1 %} {% if this.description and this.description|length >= 1 %}
<div class="card-body"> <div class="card-body position-relative">
{% if this.headline and this.headline|length >= 1 %} {% if this.headline and this.headline|length >= 1 %}
<h5 class="card-title">{{ this.headline }}</h5> <h5 class="card-title">{{ this.headline }}</h5>
<a
href="#"
class="btn btn-link position-absolute bottom-1 end-0"
data-bs-toggle="tooltip"
data-bs-placement="top"
data-bs-title="Add a reaction"
>
<i class="bi-heart-fill text-danger"></i>
</a>
{% endif %} {% endif %}
<p class="card-text">{{ this.description }}</p> <p class="card-text">{{ this.description }}</p>
</div> </div>

View File

@ -26,7 +26,7 @@ template_vars = {
"place_in_head": True, "place_in_head": True,
}, },
"masonry": { "masonry": {
"src": "https://cdn.jsdelivr.net/npm/masonry-layout@4.2.2/dist/masonry.pkgd.min.js" "src": "https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js"
}, },
}, },
"css": { "css": {