summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-05-05 20:21:51 -0600
committerDrew DeVault <sir@cmpwn.com>2015-05-05 20:21:51 -0600
commit8b8e457b71c551ead1eb4cd01ea19857a7845c61 (patch)
treebaaa38d1046086b0fc037767231171927558dbbc
parent8be984e580eda6864f2eee548ed6c0cdceb2b0ce (diff)
Add sidebar to index
-rw-r--r--_layouts/page.html16
-rw-r--r--index.html12
2 files changed, 17 insertions, 11 deletions
diff --git a/_layouts/page.html b/_layouts/page.html
index 70b40e7..1868e04 100644
--- a/_layouts/page.html
+++ b/_layouts/page.html
@@ -20,6 +20,7 @@ layout: base
</script>
</div>
<div class="col-md-3 col-md-offset-2 sidebar text-left">
+ {% if page.url != '/index.html' %}
<p>
{% if page.date %}Published {{ page.date | date_to_string }}{% endif %}
</p>
@@ -33,6 +34,21 @@ layout: base
<h5>{{ post.date | date_to_string }}</h5>
</div>
{% endfor %}
+ {% else %}
+ <p>I write software. Occasionally, I will compose a post for this blog.</p>
+ <p>
+ <a href="https://github.com/SirCmpwn">github.com/SirCmpwn</a>
+ </p>
+ <p>
+ <a href="https://twitter.com/sircmpwn">twitter.com/sircmpwn</a>
+ </p>
+ <p>
+ <a href="mailto:sir@cmpwn.com">mailto:sir@cmpwn.com</a>
+ </p>
+ <p>
+ <a href="/publickey.txt">Public key: F4EA1B88</a>
+ </p>
+ {% endif %}
<h3>My Work</h3>
<p>
Lots of open source projects &mdash;
diff --git a/index.html b/index.html
index 414939c..128d7df 100644
--- a/index.html
+++ b/index.html
@@ -1,17 +1,7 @@
---
-layout: base
+layout: page
title: Drew DeVault's Blog
---
-<h1>
- Drew DeVault's Blog
-</h1>
-<p>I write software. Occasionally, I will compose a post for this blog.</p>
-<p>
- <a href="https://github.com/SirCmpwn">github.com/SirCmpwn</a> &mdash;
- <a href="https://twitter.com/sircmpwn">twitter.com/sircmpwn</a> &mdash;
- <a href="mailto:sir@cmpwn.com">mailto:sir@cmpwn.com</a> &mdash;
- <a href="/publickey.txt">Public key: F4EA1B88</a>
-</p>
<h2>Recent Posts</h2>