forked from theodi/wdaqua
-
Notifications
You must be signed in to change notification settings - Fork 10
/
news.html
47 lines (46 loc) · 1.27 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
---
redirect_from:
- /events/
---
<div class='container'>
<div class="page-header">
<h1>News</h1>
</div>
{% for post in site.categories.news %}
<article>
{% if post.summary %}
<h2><a href="{{post.url}}">{{ post.title }}</a></h2>
{% if post.image %}
<div class="row">
<div class="col-md-6">
{{ post.summary | markdownify }}
</div>
<div class="col-md-6">
<img src="{{site.baseurl}}/assets/images/news/{{post.image}}" />
</div>
</div>
{% else %}
{{ post.summary | markdownify }}
{% endif %}
<p>(<a href="{{post.url}}">read more</a>)</p>
{% else %}
<h2>{{ post.title }}</h2>
{% if post.image %}
<div class="row">
<div class="col-md-6">
{{ post.content }}
</div>
<div class="col-md-6">
<img class="img-responsive" src="{{site.baseurl}}/assets/images/news/{{post.image}}" />
</div>
</div>
{% else %}
{{ post.content }}
{% endif %}
{% if post.link %}
<p>(<a href="{{post.link}}">read more</a>)</p>
{% endif %}
{% endif %}
</article>
{% endfor %}
</div>