forked from CSSUoB/cssuob.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnewsletter.html
35 lines (32 loc) · 842 Bytes
/
newsletter.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
34
35
---
layout: page
title: Newsletter
styles:
- /css/posts.css
scripts:
- /js/fadein.js
---
<h1>Newsletter</h1>
{% if site.news.size == 0 %}
<p>There's nothing here yet...</p>
{% endif %}
<div class="fadein-container">
{% for post in site.news reversed %}
<a class="post-preview fadein" href="{{ post.url | relative_url }}">
{% if post.thumbnail %}
<img class="post-thumbnail" src="{{ post.thumbnail | relative_url }}">
{% endif %}
<div class="post-details">
<h2 class="post-title">{{ post.title }}</h2>
<h3 class="post-date">{{ post.date | date: "%b %-d, %Y"}}</h3>
<div class="post-excerpt">
{% if post.description %}
<p>{{ post.description }}</p>
{% else %}
<p>{{ post.excerpt | strip_html }}</p>
{% endif %}
</div>
</div>
</a>
{% endfor %}
</div>