Skip to content

Commit 210a27f

Browse files
committed
Added a layout for news posts.
1 parent 9a61ff5 commit 210a27f

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

_layouts/news.html

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
layout: default
3+
---
4+
5+
<div id="content-wrapper">
6+
<div id="head-wrapper-1">
7+
<div id="head-wrapper-2">
8+
<div id="head">
9+
{% if page.header != null %}
10+
<div id="intro">
11+
{{ page.header | markdownify }}
12+
</div>
13+
{% else %}
14+
<h1>{{ page.title }}</h1>
15+
{% endif %}
16+
</div>
17+
</div>
18+
</div>
19+
20+
<div id="content">
21+
{{ content }}
22+
</div>
23+
</div>
24+
<hr class="hidden-modern" />
25+
26+
<div id="sidebar-wrapper">
27+
<div id="sidebar">
28+
<div class="navigation">
29+
<h3>Archive</h3>
30+
31+
<ul class="menu">
32+
{% for post in site.categories.news %}
33+
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
34+
{% endfor %}
35+
</ul>
36+
</div>
37+
</div>
38+
</div>
39+
<hr class="hidden-modern" />

0 commit comments

Comments
 (0)