-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathannouncements.en.html
52 lines (49 loc) · 2.02 KB
/
announcements.en.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
---
lang: en
layout: page
title: title.announcements
namespace: announcements
permalink: /announcements/
sitemap:
priority: 0.8
changefreq: 'daily'
---
<div class="row">
<div class="col s12 m6">
<h5>OpenNIC Press Releases</h5>
{% for post in site.posts %}
{% capture post_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% capture post_author %}{{ post.author }}{% endcapture %}
{% capture post_category %}{{ post.category[0] }}{% endcapture %}
{% if post_category != "Server Announcement" %}
{% if post_year != current_year %}
<p><strong>{{ post_year }}</strong></p>
{% capture current_year %}{{ post_year }}{% endcapture %}
{% endif %}
<div>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a> <div class="chip">{{ post.date | date: "%b %-d, %Y" }}</div>
</div>
{% endif %}
{% endfor %}
</div>
<div class="col s12 m6">
<h5>Server Announcements</h5>
{% for post in site.posts %}
{% capture post_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% capture post_author %}{{ post.author }}{% endcapture %}
{% capture post_category %}{{ post.category[0] }}{% endcapture %}
{% if post_category == "Server Announcement" %}
{% if post_year != current_year %}
<p><strong>{{ post_year }}</strong></p>
{% capture current_year %}{{ post_year }}{% endcapture %}
{% endif %}
<div>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a> <div class="chip">{{ post.date | date: "%b %-d, %Y" }}</div>
</div>
{% endif %}
{% endfor %}
<div>
<p><a class="waves-effect waves-light z-depth-0 blue btn" href="{{ "/2018/06/29/Announcements-Page.html#posting" | prepend: site.baseurl }}"><i class="material-icons left">create</i>New Post</a></p>
</div>
</div>
</div>