forked from ev3dev/ev3dev.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnews.html
More file actions
37 lines (36 loc) · 1.08 KB
/
news.html
File metadata and controls
37 lines (36 loc) · 1.08 KB
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
---
layout: page
---
{% assign news_count = 0 %}
{% for post in site.posts %}
{% if post.categories contains "news" %}
{% assign news_count = news_count | plus: 1 %}
{% if post.id == page.id and news_count > 5 %}
{% assign archive_extension = '/archive' %}
{% endif %}
{% endif %}
{% endfor %}
<div class="row">
<div class="col-lg-9">
{{ content }}
</div>
<div class="col-lg-3">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Post Info</h3>
</div>
<ul class="list-group">
<li class="list-group-item">
Posted on {{ page.date | date_to_long_string }}
</li>
{% if page.author %}
<li class="list-group-item">
{% for author in page.author %}
{% include /util/author-card.html author=author %}
{% endfor %}
</li>
{% endif %}
</ul>
</div>
</div>
</div>