/
news_contents.html
33 lines (33 loc) · 1.08 KB
/
news_contents.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
<div class="unit one-fifth hide-on-mobiles">
<aside>
<ul>
<li {% if page.title == 'News' %} class="current" {% endif %}>
<a href="{{ '/news/' | relative_url }}">All News</a>
</li>
<li {% if page.title == 'Releases' %} class="current" {% endif %}>
<a href="{{ '/news/releases/' | relative_url }}">Jekyll Releases</a>
</li>
</ul>
<h4>Recent Releases</h4>
<ul>
{% for post in site.categories.release limit:5 -%}
<li {% if page.title == post.title %} class="current"{% endif %}>
<a href="{{ post.url | relative_url }}">Version {{ post.version }}</a>
</li>
{% endfor -%}
<li>
<a href="{{ '/docs/history/' | relative_url }}">History »</a>
</li>
</ul>
<h4>Other News</h4>
<ul>
{% for post in site.posts -%}
{% unless post.categories contains 'release' -%}
<li {% if page.title == post.title %} class="current" {% endif %}>
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
</li>
{% endunless -%}
{% endfor -%}
</ul>
</aside>
</div>