Permalink
Browse files

Some style changes for the header on subpages

  • Loading branch information...
1 parent 99d857f commit a10152da624fc6d4727935bf039345cfe40a7bbc @krobertson krobertson committed Mar 30, 2012
Showing with 19 additions and 16 deletions.
  1. +16 −0 _layouts/post.haml
  2. +0 −14 _layouts/post.md
  3. +3 −2 public/css/bootstrap-override.css
View
@@ -0,0 +1,16 @@
+---
+layout: default
+---
+
+:plain
+ {% assign class = "category" %}
+ {% if page.category == 'dea' %}
+ {% assign class = 'short_category' %}
+ {% endif %}
+
+.page-header
+ %h1 <span class="{{ class }}">{{ page.category | replace:"-"," " }}</span> <small>{{ page.title }}</small>
+
+{{ content }}
+
+%h6 {{ page.date | date: "%A, %B %d, %Y" }}
View
@@ -1,14 +0,0 @@
----
-layout: default
----
-
-<div class="page-header">
- <h1>{{ page.category | replace:"-"," " | capitalize }} - {{ page.title }}</h1>
-</div>
-
-* Table of Contents
-{:toc}
-
-{{ content }}
-
-<h6>{{ page.date | date: "%A, %B %d, %Y" }}</h6>
@@ -3,10 +3,10 @@ body {
padding-top: 60px;
}
-.nav.nav-list li.category {
+.category {
text-transform: capitalize;
}
-.nav.nav-list li.short_category {
+.short_category {
text-transform: uppercase;
}
@@ -42,6 +42,7 @@ footer {
.page-header {
padding-bottom: 5px;
margin-bottom: 10px;
+ border-bottom: 1px solid #cccccc;
}
.fr {

0 comments on commit a10152d

Please sign in to comment.