forked from palantir/tslint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
36 lines (32 loc) · 987 Bytes
/
index.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
---
layout: page
title: News
hideTitle: true
permalink: /news/
menu: main
order: 4
---
{% assign post = site.posts | first %}
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h1>
<p class="post-meta">{{ post.date | date: "%b %-d, %Y" }}{% if page.author %} • {{ page.author }}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}</p>
</header>
<article class="post-content">
{{ post.content }}
</article>
<hr/>
{% if site.posts.size <= 1 %}
<span class="post-meta">More posts coming soon...</span>
{% else %}
<h2>Also Read...</h4>
<ul class="post-list">
{% for post in site.posts offset:1 limit:2 %}
<li>
<h5>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
</h5>
</li>
{% endfor %}
</ul>
{% endif %}