-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathnewsletter.html
More file actions
35 lines (32 loc) · 925 Bytes
/
newsletter.html
File metadata and controls
35 lines (32 loc) · 925 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
30
31
32
33
34
35
---
layout: page
title: Newsletter
styles:
- /css/posts.css
- /css/fadein.css
favicon: /favicon.ico
---
<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" style="--child-index: {{ forloop.index }};" href="{{ post.url | relative_url }}">
{% if post.thumbnail %}
<img alt="{{ post.title }}" 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>