From 5017a0a9b0dbd925f734c46da929251dba30acaf Mon Sep 17 00:00:00 2001 From: Jordy Rose Date: Wed, 3 Aug 2011 00:41:35 -0700 Subject: [PATCH] Make index.html non-site-dependent. --- README.md | 1 - _config.yml | 1 + _layouts/base.html | 8 ++++++++ _layouts/list.html | 4 ---- index.html | 2 -- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ad6e7a6..e472dda 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,6 @@ It is designed so that new users should have to edit as few files as possible: - `_includes/footer.md` - `images/blog-banner.png` (width: 246px) - `images/logo.png` (48x48px) -- `index.html` To see Shadowbox in action, check out . diff --git a/_config.yml b/_config.yml index a600588..a7844e5 100644 --- a/_config.yml +++ b/_config.yml @@ -17,6 +17,7 @@ permid: tag:belkadan.com,2007:dealloc # "Optional" site details subtitle: The Belkadan Software Blog author: Jordy Rose +home_title: -dealloc // The Belkadan Software Blog min_tag_size: 2 disqus: dealloc diff --git a/_layouts/base.html b/_layouts/base.html index 8b7554d..de04a8a 100644 --- a/_layouts/base.html +++ b/_layouts/base.html @@ -5,6 +5,14 @@ {% if page.full-title %} {{ page.full-title }} + {% elsif page.body == 'home' %} + {% if site.home_title %} + {{ site.home_title }} + {% elsif site.subtitle %} + {{ site.title }}: {{ site.subtitle }} + {% else %} + {{ site.title }} + {% endif %} {% else %} {{ page.title }} // {{ site.title }} {% endif %} diff --git a/_layouts/list.html b/_layouts/list.html index 1de06da..5885928 100644 --- a/_layouts/list.html +++ b/_layouts/list.html @@ -48,11 +48,7 @@ <h2><a href="{{ site.baseurl }}{{ post.url }}" rel="bookmark" title="Permanent l {% if content_size != '0' or posts.size > full_count %} <div class="shadow-box"> {% if posts.size > full_count %} - {% if page.more %} - <h2>{{ page.more }}</h2> - {% else %} <h2>Older Posts</h2> - {% endif %} <ol class="dates"> {% for post in posts limit: short_count offset: full_count %} diff --git a/index.html b/index.html index 7385473..c23c9ec 100644 --- a/index.html +++ b/index.html @@ -1,8 +1,6 @@ --- layout: list body: home -full-title: "-dealloc // The Belkadan Software Blog" -more: "Older Posts" atom: true dependencies: news ---