changed _pages to pages and removed include pages from config file. turned out this wasn't necessary.

This commit is contained in:
tomjohnson1492
2016-07-06 23:57:35 -07:00
parent cce99619c0
commit e941db4f56
93 changed files with 1 additions and 4 deletions

33
pages/news/news.html Normal file
View File

@ -0,0 +1,33 @@
---
title: News
sidebar: home_sidebar
keywords: news, blog, updates, release notes, announcements
permalink: news.html
toc: false
folder: news
---
<div class="home">
<div class="post-list">
{% for post in site.posts limit:10 %}
<h2><a class="post-link" href="{{ post.url }}">{{ post.title }}</a></h2>
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }} /
{% for tag in post.tags %}
<a href="{{ "/tag_" | append: {{tag}}/">{{tag}}</a>{% unless forloop.last %}, {% endunless%}
{% endfor %}</span>
<p>{% if page.summary %} {{ page.summary | strip_html | strip_newlines | truncate: 160 }} {% else %} {{ post.content | truncatewords: 50 | strip_html }} {% endif %}</p>
{% endfor %}
<p><a href="{{ "/feed.xml" | prepend: site.baseurl }}" class="btn btn-primary navbar-btn cursorNorm" role="button">RSS Subscribe{{tag}}</a></p>
<hr />
<p>See more posts from the <a href="{{ "/news_archive/" | prepend: site.baseurl }}">News Archive</a>. </p>
</div>

View File

@ -0,0 +1,41 @@
---
title: News
sidebar: mydoc_sidebar
keywords: news, blog, updates, release notes, announcements
permalink: news_archive.html
toc: false
folder: news
---
<div class="home">
<div class="post-list">
<section id="archive">
<h3>This year's posts</h3>
{%for post in site.posts %}
{% unless post.next %}
<ul class="this">
{% else %}
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
{% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
{% if year != nyear %}
</ul>
<h3>{{ post.date | date: '%Y' }}</h3>
<ul class="past">
{% endif %}
{% endunless %}
<li><time>{{ post.date | date:"%d %b" }}</time><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
</section>
<hr/>
</div>