Add blog, fix a couple of typos

This commit is contained in:
Jesper Hess 2016-04-06 13:12:47 +02:00
parent fddbf5f532
commit 708bff4c0f
4 changed files with 27 additions and 3 deletions

View File

@ -11,7 +11,7 @@ email: jesper@graffen.dk
description: > # this means to ignore newlines until "baseurl:"
xmpp.dk is a secure, free and public XMPP/Jabber server that allows registration.
baseurl: "" # the subpath of your site, e.g. /blog
url: "https://xmpp.dk" # the base hostname & protocol for your site
url: "http://localhost:4000" # the base hostname & protocol for your site
sass:
sass_dir: _sass
include: ['_pages']

View File

@ -14,5 +14,5 @@
</aside>
<header>
<h1><a href="{{ site.baseurl }}">{{ site.title }}</a></h1>
<h1><a href="{{ site.url }}">{{ site.title }}</a></h1>
</header>

24
blog.html Normal file
View File

@ -0,0 +1,24 @@
---
layout: default
permalink: /blog/
---
<div class="home">
<h1 class="page-heading">Posts</h1>
<ul class="post-list">
{% for post in site.posts %}
<li>
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
<h2>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</h2>
</li>
{% endfor %}
</ul>
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>
</div>

View File

@ -2,7 +2,7 @@
layout: default
---
<h4>blog</h4>
<h4>Blog</h4>
{% for post in site.posts %}
<time>{{ post.date | date: "%b %-d, %Y" }}</time>
<h3><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h3>