aboutsummaryrefslogtreecommitdiffstats
path: root/docs/blog
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-09-27 14:56:52 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-09-27 14:56:52 +0100
commitb3fea58c6f9a29ec5fb428d82c25e3a82ac962af (patch)
treef7b79502c8bcbc158451c205944ee8d337750f8e /docs/blog
parent371927debffc6bb42d8d86a90afc715d1d837e74 (diff)
Move docs from gh-pages branch.
Diffstat (limited to 'docs/blog')
-rw-r--r--docs/blog/index.html41
1 files changed, 41 insertions, 0 deletions
diff --git a/docs/blog/index.html b/docs/blog/index.html
new file mode 100644
index 000000000..d84b7f5ab
--- /dev/null
+++ b/docs/blog/index.html
@@ -0,0 +1,41 @@
+---
+layout: page
+title: Blog
+---
+
+<h1>Blog</h1>
+
+<ul class="list-of-blog-posts">
+{% for post in paginator.posts %}
+ <li class="listed-blog-post">
+ <h2 class="blog-title"><a href="{{ post.url }}">{{ post.title }}</a> <small class="meta meta--date">{{ post.date | date: "%-d %B %Y" }}</small></h2>
+ {{ post.content }}
+ </li>
+{% endfor %}
+</ul>
+
+{% if paginator.total_pages > 1 %}
+<div class="pagination">
+ {% if paginator.previous_page %}
+ <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo; Prev</a>
+ {% else %}
+ <span>&laquo; Prev</span>
+ {% endif %}
+ &middot;
+ {% for page in (1..paginator.total_pages) %}
+ {% if page == paginator.page %}
+ {{ page }}
+ {% elsif page == 1 %}
+ <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a>
+ {% else %}
+ <a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
+ {% endif %}
+ {% endfor %}
+ &middot;
+ {% if paginator.next_page %}
+ <a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next &raquo;</a>
+ {% else %}
+ <span>Next &raquo;</span>
+ {% endif %}
+</div>
+{% endif %}