-
Notifications
You must be signed in to change notification settings - Fork 2
/
news.html
40 lines (36 loc) · 1.09 KB
/
news.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
36
37
38
39
40
---
title: News | NuMat
layout: default
permalink: /news/
---
<div class="container masonry top">
{% for post in site.data.news %}
{% if post.video %}
<div class="post video-post">
<div class="entry-media">
<iframe src="{{ post.video }}" frameborder="0"></iframe>
</div>
{% else %}
<div class="post">
{% for image in post.images %}
{% if image.link %}
<a href="{{ image.link }}">
<img class="post-img" height="{{ image.height }}" alt="{{ image.alt }}"
src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="
data-src="/img/news/{{ image.file }}" />
</a>
{% else %}
<img class="post-img" height="{{ image.height }}" alt="{{ image.alt }}"
src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="
data-src="/img/news/{{ image.file }}" />
{% endif %}
{% endfor %}
{% endif %}
<div class="entry-body">
<h2 class="entry-title">{{ post.title }}</h2>
<p class="date">{{ post.date }}</p>
<p>{{ post.description | markdownify }}</p>
</div>
</div>
{% endfor %}
</div>