fix: stretched-link in title and card #28
@@ -10,7 +10,7 @@ content:
|
||||
url:
|
||||
type: 'string'
|
||||
---
|
||||
<div class="card mb-3">
|
||||
<div class="card mb-3 position-relative">
|
||||
<div class="row g-0">
|
||||
<div class="col-md-4">
|
||||
{%
|
||||
@@ -21,13 +21,9 @@ url:
|
||||
</div>
|
||||
<div class="col-md-8 ps-3">
|
||||
<div class="card-body d-flex flex-column h-100 justify-content-between">
|
||||
<a class="fs-5 fw-bold card-title text-monospace" href="{{ url }}">{{- title -}}</a>
|
||||
<a class="fs-5 fw-bold card-title text-monospace stretched-link" href="{{ url }}">{{- title -}}</a>
|
||||
<p class="fs-6 card-text text-monospace">
|
||||
{{ content | truncatewords: 15 }}
|
||||
{% assign words = content | number_of_words %}
|
||||
{% if words > 15 %}
|
||||
<a href="{{ url }}">(read more)</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
<div class="d-flex align-items-center justify-content-between">
|
||||
<p class="card-text fst-italic">{{ created_at }}</p>
|
||||
|
||||
Reference in New Issue
Block a user