-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathnews.html
49 lines (38 loc) · 1.36 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
41
42
43
44
45
46
47
48
49
---
layout: default
title: News | Vis Design Lab
---
<div class="home">
<div class="banner">
</div>
<article class="post-content-main">
<h1>News <span class="left-icon"><a href="{{ site.baseurl }}/feed.xml"><i class="fa fa-rss"></i></a></span></h1>
{% for post in site.posts %}
{% if post.type != "blog" %}
<a class="post-list-link" href="{{ post.url | prepend: site.baseurl }}">
<span class="post-list-title">
{{ post.title }}
</span>
</a>
<span class="right-text"><i>Posted: {{ post.date | date: "%-d %b %Y" }}</i></span>
<div class="post-list-excerpt">
{% if post.abstract %}
<p>{{ post.abstract}}</p>
{% endif %}
{% if post.lead-image %}
{% assign alt-text = "Blog lead image" %}
{% if post.lead-image-alt-text %}
{% assign alt-text=post.lead-image-alt-text %}
{% endif %}
<a href="{{ site.baseurl }}{{ post.url }}">
<img src="{{site.baseurl}}{{post.lead-image}}" alt="{{alt-text}}"/>
</a>
{% endif %}
{{ post.excerpt }}
</div>
<div><a class="post-list-link" href="{{ post.url | prepend: site.baseurl }}">More...</a></div>
<br><br>
{% endif %}
{% endfor %}
</article>
</div>