forked from nhs-pycom/nhs.pycom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog.html
33 lines (33 loc) · 996 Bytes
/
blog.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
25
26
27
28
29
30
31
32
33
---
layout: default
title: Blog
---
<h2>Latest Posts</h2>
<div>
<div>
{% for post in site.posts %}
<div class="nhsuk-card nhsuk-card--clickable nhsuk-card--post">
<!--<img class="nhsuk-card__img" src="/assets/img/posts/shall-not-pass.jpg" alt="">-->
<div class="nhsuk-card__content">
<p class="nhsuk-card__metadata nhsuk-body-s nhsuk-u-margin-bottom-0">
{% if site.date_format %}
{{ post.date | date: site.date_format }}
{% else %}
{{ post.date | date: "%b %-d, %Y" }}
{% endif %}
</p>
<h3 class="nhsuk-card__heading">
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
</h3>
<p class="nhsuk-card__description">
{% if post.summary %}
{{ post.summary }}
{% else %}
{{ post.excerpt }}
{% endif %}
</p>
</div>
</div>
</div>
{% endfor %}
</div>