Add news posts
parent
81946e99bd
commit
646906429f
@ -0,0 +1,8 @@
|
||||
---
|
||||
layout: default
|
||||
nav_pill: news
|
||||
---
|
||||
<h1>{{ page.title }}</h1>
|
||||
<p>{{ page.date | date_to_string }} - {{ page.author }}</p>
|
||||
|
||||
{{ content }}
|
@ -0,0 +1,19 @@
|
||||
---
|
||||
layout: default
|
||||
nav_pill: news
|
||||
---
|
||||
<h1>News</h1>
|
||||
{% for post in site.posts %}
|
||||
<h2>{{ post.title }}</h2>
|
||||
<p><strong>{{ post.date | date_to_string }} by {{ post.author }}</strong></p>
|
||||
{% if forloop.first %}
|
||||
{{ post.content }}
|
||||
<p><a href="{{ post.url }}">Permalink</a></p>
|
||||
{% else %}
|
||||
{{ post.excerpt }}
|
||||
<p><a href="{{ post.url }}">Read more...</a></p>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<p>No news</p>
|
||||
{% endfor %}
|
||||
</ul>
|
Loading…
Reference in New Issue