Skip to content

Commit

Permalink
Update blog-card.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Naurk authored Sep 23, 2024
1 parent 2b42ebd commit dd90f77
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions _includes/blog-card.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
<div class="columns has-text-centered" id="blog-card">
<div class="column is-marginless is-paddingless is-one-third-desktop is-one-third-fullhd is-one-third-tablet">
<div class="image is-16by9" style="background-image: url({{post.post-image}});"></div>
<div class="image is-16by9" style="background-image: url({{ include.post.post-image }});"></div>
</div>
<a href="{{post.url | absolute_url}}">
<a href="{{ include.post.url | absolute_url }}">
<div class="column has-text-left-desktop has-text-left-tablet">
<h1 class="title is-size-4-touch">{{post.title}}</h1>
<h1 class="title is-size-4-touch">{{ include.post.title }}</h1>
<div class="content has-text-grey">
{{ post.content | truncate: 300 | strip_html | strip_newlines | strip | escape }}
{{ include.post.content | truncate: 300 | strip_html | strip_newlines | strip | escape }}
<hr class="has-background-grey">
<span class="has-text-grey">Published on <span class="has-text-weight-semibold">{{ post.date | date: "%-B %d, %Y" }}</span></span> | <i class="fas fa-clock"></i> <span class="has-text-weight-semibold">{% assign words = post.content | number_of_words %}{%- unless content.size == 0 -%}{{ words | divided_by:180 }} min{% endunless %}</span> read
<span class="has-text-grey">
Pubblicato il <span class="has-text-weight-semibold">{{ include.post.date | date: "%-B %d, %Y" }}</span>
</span> | <i class="fas fa-clock"></i> <span class="has-text-weight-semibold">
{% assign words = include.post.content | number_of_words %}
{% unless include.post.content.size == 0 %}
{{ words | divided_by:180 }} min
{% endunless %}
</span> di lettura
</div>
</div>
</a>
</div>
</div>

0 comments on commit dd90f77

Please sign in to comment.