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 dd90f77 commit a119ccf
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions _includes/blog-card.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
<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({{ include.post.post-image }});"></div>
<div class="image is-16by9" style="background-image: url({{post.post-image}});"></div>
</div>
<a href="{{ include.post.url | absolute_url }}">
<a href="{{post.url | absolute_url}}">
<div class="column has-text-left-desktop has-text-left-tablet">
<h1 class="title is-size-4-touch">{{ include.post.title }}</h1>
<h1 class="title is-size-4-touch">{{post.title}}</h1>
<div class="content has-text-grey">
{{ include.post.content | truncate: 300 | strip_html | strip_newlines | strip | escape }}
{{ post.content | truncate: 300 | strip_html | strip_newlines | strip | escape }}
<hr class="has-background-grey">
<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
<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
</div>
</div>
</a>
Expand Down

0 comments on commit a119ccf

Please sign in to comment.