Initial commit

This commit is contained in:
Michael Smith
2018-02-27 12:44:11 +01:00
parent ec8f38f507
commit 1c8ba50102
159 changed files with 16261 additions and 0 deletions

28
_layouts/category.html Normal file
View File

@@ -0,0 +1,28 @@
---
layout: default
---
{% include category/title.html %}
<ul class="list-posts">
{% assign empty_category = true %}
{% for post in site.posts %}
{% if post.categories contains page.category %}
<li class="post-teaser">
<a href="{{ post.url | prepend: site.baseurl }}">
<span class="post-teaser__title">{{ post.title }}</span>
<span class="post-teaser__date">{{ post.date | date: "%d %B %Y" }}</span>
</a>
</li>
{% assign empty_category = false %}
{% endif %}
{% endfor %}
{% if empty_category %}
<li class="empty-post-list">
It seems that there are no articles on that category,
please go back <a href="/">home</a> to see the full list of articles.
</li>
{% endif %}
</ul>
{% include page/footer.html %}

24
_layouts/default.html Normal file
View File

@@ -0,0 +1,24 @@
<!DOCTYPE html>
{% if page.lang or post.lang %}
<html lang="{{ page.lang }}">
{% else %}
<html lang="en">
{% endif %}
<head>
{% include meta_tags/base.html %}
{% include meta_tags/favicon.html %}
{% include externals/styling.html %}
</head>
<body>
<div class="wrapper">
{% include header.html %}
{{ content }}
</div>
{% include externals/scripting.html %}
{% include externals/google_analytics.html %}
</body>
</html>

8
_layouts/page.html Normal file
View File

@@ -0,0 +1,8 @@
---
layout: default
---
{% include page/title.html %}
{{ content }}
{% include page/footer.html %}

14
_layouts/post.html Normal file
View File

@@ -0,0 +1,14 @@
---
layout: default
---
{% include post/title.html %}
<div class="content">
{{ content }}
</div>
{% include post/about.html %}
{% include externals/disqus.html %}
{% include page/footer.html %}