mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-06 03:01:43 -04:00
Add "Other News" section for News sidebar on site
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
</ul>
|
||||
<h4>Recent Releases</h4>
|
||||
<ul>
|
||||
{% for post in site.posts limit:5 %}
|
||||
{% for post in site.categories.release limit:5 %}
|
||||
<li class="{% if page.title == post.title %}current{% endif %}">
|
||||
<a href="{{ post.url }}">Version {{ post.version }}</a>
|
||||
</li>
|
||||
@@ -19,5 +19,15 @@
|
||||
<a href="/docs/history/">History »</a>
|
||||
</li>
|
||||
</ul>
|
||||
<h4>Other News</h4>
|
||||
<ul>
|
||||
{% for post in site.posts %}
|
||||
{% unless post.categories contains 'release' %}
|
||||
<li class="{% if page.title == post.title %}current{% endif %}">
|
||||
<a href="{{ post.url }}">{{ post.title }}</a>
|
||||
</li>
|
||||
{% endunless %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</aside>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user