-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpost-card.html
More file actions
29 lines (29 loc) · 1018 Bytes
/
Copy pathpost-card.html
File metadata and controls
29 lines (29 loc) · 1018 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<div class="card">
{% if post.image %}
<div class="card-image">
<img src="{{ post.image }}" alt="{{ post.title }}">
</div>
{% else %}
<header class="card-header">
<a class="card-header-title" href="{{ site.baseurl }}{{ post.url }}">{{ post.title}}</a>
</header>
{% endif %}
<div class="card-content">
<div class="content">
{% if post.image %}
<a class="title is-4" href="{{ site.baseurl }}{{ post.url }}">{{ post.title}}</a>
{% endif %}
{% if post.summary %}
{{ post.summary | markdownify }}
{% else %}
<p>{{ post.excerpt }}</p>
{% endif %}
</div>
<div class="has-text-centered">
<a href="{{ site.baseurl }}{{ post.url }}" class="button is-primary">Read more</a>
</div>
</div>
<footer class="card-footer">
<p class="card-footer-item">Published: {{ post.date | date: "%b %-d, %Y" }}</p>
</footer>
</div>