forked from thedevslot/WhatATheme
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |