Skip to content

Commit a1c1a1a

Browse files
committed
A stylistic change to pull the date off to a sidebar, as well as adding timestamps (as well as dates) to posts. Made the header a little (but only a little) easier on my eyes too.
1 parent 097153f commit a1c1a1a

File tree

5 files changed

+48
-11
lines changed

5 files changed

+48
-11
lines changed

_layouts/post.html

+12-5
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,22 @@
33
---
44
<h1 class="postTitle"><a href="{{ page.url }}">{{ page.title }}</a></h1>
55
<div class="post">
6-
{{ content }}
7-
<p class="meta">
8-
{{ page.date | date: "%b %d, %Y" }} -
9-
<a href="{{ page.url }}">Permalink</a>
6+
<div class="date">
7+
<span class="weekDay">{{ page.date | date: "%a" }}</span><br />
8+
<span class="monthDay">{{ page.date | date: "%b %d" }}</span><br />
9+
<span class="year">{{ page.date | date: "%Y" }}</span>
10+
</div>
11+
<div class="text">
12+
{{ content }}
13+
</div>
14+
<div class="meta">
15+
<a href="{{ page.url }}">Permalink</a> -
16+
Posted at {{ page.date | date: "%I:%M %p" }}
1017
<br />
1118
{% for c in page.categories %}
1219
<span class="postCategory">{{ c }}</span>{% if forloop.last != true %},{% endif %}
1320
{% endfor %}
14-
</p>
21+
</div>
1522
</div>
1623

1724
<div id="related">

_posts/2009-12-13-kerberos-and-ksu.html

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
layout: post
3+
date: 2009-12-13 12:53:38
34
title: "Kerberos and ksu"
45
categories:
56
- linux

_posts/2010-09-17-bash-history.html

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
layout: post
33
title: "Bash history retention for root"
4+
date: 2010-09-17 14:17:50
45
categories:
56
- linux
67
- sysadmin

css/default.css

+22-2
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
11
@import url(http://fonts.googleapis.com/css?family=Cabin|Droid+Serif);
22
@import url('syntax.css');
33
.highlighttable .linenos .linenodiv {
4-
border-right: 1px #CCC solid;
4+
border-right: 1px solid #CCC;
55
padding-right: 10px;
66
margin-right: 10px;
77
}
88

99
BODY {
1010
font: 15px/23px 'Droid Serif',serif;
11+
margin: 0;
12+
padding: 0;
1113
}
1214

13-
.header, BODY {
15+
.header {
1416
padding: 5px;
1517
margin: 0px 0px 20px 0px;
1618
}
1719

1820
.header {
1921
border-bottom: 1px dashed;
2022
font: 32px 'Cabin',sans-serif;
23+
margin-bottom: 1.5em;
2124
}
2225

2326
A, A:visited {
@@ -37,7 +40,24 @@ A:hover {
3740

3841
.content :first-child { margin-top: 0; }
3942

43+
.content .date {
44+
border-bottom: 1px solid #CCC;
45+
text-align: center;
46+
/*width: 5em;*/
47+
float: left;
48+
color: #787;
49+
}
50+
51+
.content .date .weekDay { font-size: 1.9em; }
52+
.content .date .monthDay { font-size: 1em; }
53+
.content .date .year { font-size: 1.4em; }
54+
55+
.content .text {
56+
margin-left: 5em;
57+
}
58+
4059
.meta {
60+
clear: both;
4161
margin: 0;
4262
padding: 0;
4363
text-align: right;

index.html

+12-4
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,23 @@
55
{% for post in paginator.posts %}
66
<h1 class="postTitle"><a href="{{ post.url }}">{{ post.title }}</a></h1>
77
<div class="post">
8-
{{ post.content }}
9-
<p class="meta">
10-
{{ post.date | date: "%b %d, %Y" }} -
8+
<div class="date">
9+
<span class="weekDay">{{ post.date | date: "%a" }}</span><br />
10+
<span class="monthDay">{{ post.date | date: "%b %d" }}</span><br />
11+
<span class="year">{{ post.date | date: "%Y" }}</span>
12+
</div>
13+
<div class="text">
14+
{{ post.content }}
15+
</div>
16+
<div class="meta">
17+
<a href="{{ post.url }}">Permalink</a> -
18+
Posted at {{ post.date | date: "%I:%M %p" }} -
1119
<a id="more" href="{{ post.url }}#disqus_thread" data-disqus-identifier="{{ post.url }}">Comments</a>
1220
<br />
1321
{% for c in post.categories %}
1422
<span class="postCategory">{{ c }}</span>{% if forloop.last != true %},{% endif %}
1523
{% endfor %}
16-
</p>
24+
</div>
1725
</div>
1826
{% endfor %}
1927

0 commit comments

Comments
 (0)