Skip to content

Commit

Permalink
Make index.html non-site-dependent.
Browse files Browse the repository at this point in the history
  • Loading branch information
belkadan committed Aug 3, 2011
1 parent 61604df commit 5017a0a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <http://belkadan.com/blog>.

Expand Down
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 8 additions & 0 deletions _layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
<title>
{% 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 %}
Expand Down
4 changes: 0 additions & 4 deletions _layouts/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down
2 changes: 0 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
layout: list
body: home
full-title: "-dealloc // The Belkadan Software Blog"
more: "Older Posts"
atom: true
dependencies: news
---

0 comments on commit 5017a0a

Please sign in to comment.