-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost-feature-card.html
24 lines (23 loc) · 1.02 KB
/
post-feature-card.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{%- assign image = post.image | default: site.image %}
{%- assign excerpt = post.description | default: post.excerpt %}
<div class="py-4 d-flex flex-column flex-md-row flex-md-row-reverse p-responsive col-12">
<div class="col-12 col-lg-8 p-responsive">
<div class="image-container">
<a href="{{ post.url | relative_url }}">
<img class="rounded-2" src="{{ image | relative_url }}" width="800" height="425" alt="{{ post.title }}">
</a>
</div>
</div>
<div class="col-12 col-lg-4 pt-lg-4 p-responsive">
<h3 class="h4-mktg mb-12px">
<a class="Link--primary" href="{{ post.url | relative_url }}">{{ post.title }}</a>
</h3>
<div class="f4-mktg color-fg-muted">{{ excerpt }}</div>
<div class="d-flex flex-items-end flex-wrap">
{%- if post.author %}
<span class="mr-3 mr-12px mt-1 f5-mktg text-bold">{{ post.author }}</span>
{%- endif %}
<span class="d-inline-block f5-mktg text-mono color-fg-muted mt-1">{{ post.date | date: "%b %d, %Y"}}</span>
</div>
</div>
</div>