-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
79 lines (69 loc) · 2.36 KB
/
index.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
title: News
layout: default
---
<br>
<div class = "news">
<ul class = "list">
{% for post in paginator.posts %}
{% if post.title != nil %}
<li class = "item">
{% if post.external-url %}
<a href="{{ post.external-url }}" title="{{ post.title }}" class="post-teaser">
<center>
{% if post.teaser %}
<img class="image" src="{{ site.url }}/assets/news_graphics/{{ post.teaser }}" heigth="137px" width="220px">
{% else %}
<img class="image" src="{{ site.url }}/assets/news_graphics/default_teaser.png" heigth="137px" width="220px">
{% endif %}
</center>
</a>
<h2 class="date">{{ post.date | date: "%B %d, %Y" }}</h2>
<h2 class="title"><a href="{{ post.external-url }}">{{ post.title }}</a></h2>
{% else %}
<a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}" class="post-teaser">
<center>
{% if post.teaser %}
<img class="image" src="{{ site.url }}/assets/news_graphics/{{ post.teaser }}" heigth="137px" width="220px">
{% else %}
<img class="image" src="{{ site.url }}/assets/news_graphics/default_teaser.png" heigth="137px" width="220px">
{% endif %}
</center>
</a>
<h2 class="date">{{ post.date | date: "%B %d, %Y" }}</h2>
<h2 class="title"><a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a></h2>
{% endif %}
<div class="entry-content">
{{ post.excerpt | strip_html | truncate: 160 }}
</div>
</li>
{% cycle 'close rows': '', '', '', '</ul><ul class = "list">' %}
{% endif %}
{% endfor %}
</ul>
</div>
<br>
{% if paginator.total_pages > 1 %}
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">« Prev</a>
{% else %}
<a style="color:black">« Prev</a>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<a style="color:black"><em>{{ page }}</em></a>
{% elsif page == 1 %}
<a href="/news">{{ page }}</a>
{% else %}
<a href="{{ site.paginate_path | prepend: "/" | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next »</a>
{% else %}
<a style="color:black">Next »</a>
{% endif %}
</div>
{% endif %}
<br>