aboutsummaryrefslogtreecommitdiff
path: root/source/_layouts
diff options
context:
space:
mode:
Diffstat (limited to 'source/_layouts')
-rw-r--r--source/_layouts/archive_monthly.html19
-rw-r--r--source/_layouts/archive_yearly.html25
-rw-r--r--source/_layouts/default.html15
-rw-r--r--source/_layouts/page.html3
-rw-r--r--source/_layouts/post.html1
5 files changed, 54 insertions, 9 deletions
diff --git a/source/_layouts/archive_monthly.html b/source/_layouts/archive_monthly.html
new file mode 100644
index 00000000..85ada6d8
--- /dev/null
+++ b/source/_layouts/archive_monthly.html
@@ -0,0 +1,19 @@
+---
+layout: default
+---
+<div id="content">
+ <div class="post">
+ <h1 class="post-title">{{ page.month | date_to_month }} {{ page.year }}</h1>
+ <p class="lead">Posts from {{ page.month | date_to_month }}, {{ page.year }}</p>
+ <ul>
+ {% for d in (1..31) reversed %}
+ {% if page.collated_posts[page.year][page.month][d] %}
+ {% for p in page.collated_posts[page.year][page.month][d] reversed %}
+ <li><a href='{{ p.url }}'>{{ p.title }}</a></li>
+ {% endfor %}
+ {% endif %}
+ {% endfor %}
+ </ul>
+ </div>
+</div>
+
diff --git a/source/_layouts/archive_yearly.html b/source/_layouts/archive_yearly.html
new file mode 100644
index 00000000..dabebebd
--- /dev/null
+++ b/source/_layouts/archive_yearly.html
@@ -0,0 +1,25 @@
+---
+layout: default
+---
+<div id="content">
+ <div class="post">
+ <h1 class="post-title">{{ page.year }}</h1>
+ <p class="lead">Posts from the year {{ page.year }}</p>
+ {% for m in (1..12) reversed %}
+ {% if page.collated_posts[page.year][m] %}
+ <h3>{{ m | date_to_month }}</h3>
+ {% for d in (1..31) reversed %}
+ {% if page.collated_posts[page.year][m][d] %}
+ {% for p in page.collated_posts[page.year][m][d] reversed %}
+ <div>
+ <strong>{{ p.date | date: "%d" }}</strong>
+ <a href='{{ p.url }}'>{{ p.title }}</a>
+ </div>
+ {% endfor %}
+ {% endif %}
+ {% endfor %}
+ {% endif %}
+ {% endfor %}
+ </div>
+</div>
+
diff --git a/source/_layouts/default.html b/source/_layouts/default.html
index f69043b7..06fdbd77 100644
--- a/source/_layouts/default.html
+++ b/source/_layouts/default.html
@@ -1,9 +1,6 @@
-<!DOCTYPE html>
-<!--[if IEMobile 7 ]><html class="no-js iem7" manifest="default.appcache?v=1"><![endif]-->
-<!--[if lt IE 7 ]><html class="no-js ie6" lang="en"><![endif]-->
-<!--[if IE 7 ]><html class="no-js ie7" lang="en"><![endif]-->
-<!--[if IE 8 ]><html class="no-js ie8" lang="en"><![endif]-->
-<!--[if (gte IE 9)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" manifest="default.appcache?v=1" lang="en"><!--<![endif]-->
+---
+permalink: /blog/:year/:month/:day/:title
+---
{% include head.html %}
<body {% if page.body_id %} id="{{ page.body_id }}" {% endif %} {% if page.no_sidebar %} class="no-sidebar" {% endif %}>
<header><div>{% include header.html %}</div></header>
@@ -18,9 +15,9 @@
</div>
<footer><div>{% include footer.html %}</div></footer>
<!--[if (lt IE 9) & (!IEMobile)]>
- <script src="javascripts/libs/DOMAssistantCompressed-2.8.js"></script>
- <script src="javascripts/libs/selectivizr-1.0.1.js"></script>
- <script src="javascripts/libs/respond.min.js"></script>
+ <script src="javascripts/libs/ie/DOMAssistantCompressed-2.8.js"></script>
+ <script src="javascripts/libs/ie/selectivizr-1.0.1.js"></script>
+ <script src="javascripts/libs/ie/respond.min.js"></script>
<![endif]-->
</body>
</html>
diff --git a/source/_layouts/page.html b/source/_layouts/page.html
index 3b568349..88d6e13a 100644
--- a/source/_layouts/page.html
+++ b/source/_layouts/page.html
@@ -1,5 +1,8 @@
---
layout: default
+no_title_link: true
+permalink: pretty
+single: true
---
<article>
diff --git a/source/_layouts/post.html b/source/_layouts/post.html
index 3b568349..d2c87ce3 100644
--- a/source/_layouts/post.html
+++ b/source/_layouts/post.html
@@ -1,5 +1,6 @@
---
layout: default
+single: true
---
<article>