Permalink
Browse files

Adding gravatars and authors to the blog page

  • Loading branch information...
1 parent 33debae commit f07ac7d79afcb5fb310f00a3261a12e480ec2eaf @carols10cents carols10cents committed May 7, 2012
View
@@ -4,7 +4,7 @@
<title><![CDATA[Steel City Ruby Conf]]></title>
<link href="http://scrc-octopress.heroku.com/atom.xml" rel="self"/>
<link href="http://scrc-octopress.heroku.com/"/>
- <updated>2012-05-07T07:21:16-04:00</updated>
+ <updated>2012-05-07T09:51:32-04:00</updated>
<id>http://scrc-octopress.heroku.com/</id>
<author>
<name><![CDATA[]]></name>
@@ -85,9 +85,11 @@
<header>
+
<h1 class="entry-title">How Steel City Ruby Conf Came to Be</h1>
+
<p class="meta">
@@ -85,9 +85,11 @@
<header>
+
<h1 class="entry-title">Why You Shouldn't Code Alone</h1>
+
<p class="meta">
@@ -9,8 +9,7 @@
<meta name="author" content="">
- <meta name="description" content="Why You Shouldn&#8217;t Code Alone May 4th, 2012 I work for a decent sized manufacturing company in the Pittsburgh area. I am the
-only ruby &hellip;">
+ <meta name="description" content="Why You Shouldn&#8217;t Code Alone by Corey Purcell May 4th, 2012 I work for a decent sized manufacturing company in the Pittsburgh area. I am the &hellip;">
<!-- http://t.co/dKP3o1e -->
@@ -85,9 +84,11 @@
<header>
+
<h1 class="entry-title">The Blog</h1>
+
<p class="meta">
@@ -114,9 +115,17 @@ <h1 class="entry-title">The Blog</h1>
<header>
+ <div class="author-gravatar">
+ <img src="http://www.gravatar.com/avatar/64847e261e75b839eb460127fb065f78" alt="Corey Purcell" />
+ </div>
+
+
<h1 class="entry-title"><a href="/blog/2012/05/04/why-you-shouldnt-code-alone/">Why You Shouldn&#8217;t Code Alone</a></h1>
+ <div class="entry-author">by Corey Purcell</div>
+
+
<p class="meta">
@@ -189,9 +198,17 @@ <h1 class="entry-title"><a href="/blog/2012/05/04/why-you-shouldnt-code-alone/">
<header>
+ <div class="author-gravatar">
+ <img src="http://www.gravatar.com/avatar/2ac88413948aad12e279e0d9609e7f74" alt="Carol Nichols" />
+ </div>
+
+
<h1 class="entry-title"><a href="/blog/2012/05/03/how-steel-city-ruby-conf-came-to-be/">How Steel City Ruby Conf Came to Be</a></h1>
+ <div class="entry-author">by Carol Nichols</div>
+
+
<p class="meta">
View
@@ -4,38 +4,38 @@
<loc>
http://scrc-octopress.heroku.com/blog/2012/05/03/how-steel-city-ruby-conf-came-to-be/
</loc>
- <lastmod>2012-05-06T16:19:19-04:00</lastmod>
+ <lastmod>2012-05-07T09:51:31-04:00</lastmod>
</url>
<url>
<loc>http://scrc-octopress.heroku.com/blog/2012/05/04/why-you-shouldnt-code-alone/</loc>
- <lastmod>2012-05-06T16:19:19-04:00</lastmod>
+ <lastmod>2012-05-07T09:51:31-04:00</lastmod>
</url>
<url>
<loc>http://scrc-octopress.heroku.com/blog/archives/</loc>
- <lastmod>2012-05-06T16:19:19-04:00</lastmod>
+ <lastmod>2012-05-07T09:47:53-04:00</lastmod>
</url>
<url>
<loc>http://scrc-octopress.heroku.com/blog/</loc>
- <lastmod>2012-05-06T16:19:19-04:00</lastmod>
+ <lastmod>2012-05-07T09:51:11-04:00</lastmod>
</url>
<url>
<loc>http://scrc-octopress.heroku.com/city/</loc>
- <lastmod>2012-05-06T16:19:19-04:00</lastmod>
+ <lastmod>2012-05-07T09:47:53-04:00</lastmod>
</url>
<url>
<loc>http://scrc-octopress.heroku.com/conference/</loc>
- <lastmod>2012-05-06T16:19:19-04:00</lastmod>
+ <lastmod>2012-05-07T09:47:53-04:00</lastmod>
</url>
<url>
<loc>http://scrc-octopress.heroku.com/</loc>
- <lastmod>2012-05-07T07:08:23-04:00</lastmod>
+ <lastmod>2012-05-07T09:47:53-04:00</lastmod>
</url>
<url>
<loc>http://scrc-octopress.heroku.com/policies/</loc>
- <lastmod>2012-05-06T16:19:19-04:00</lastmod>
+ <lastmod>2012-05-07T09:47:53-04:00</lastmod>
</url>
<url>
<loc>http://scrc-octopress.heroku.com/sponsors/</loc>
- <lastmod>2012-05-06T16:45:05-04:00</lastmod>
+ <lastmod>2012-05-07T09:47:53-04:00</lastmod>
</url>
</urlset>
Oops, something went wrong.
@@ -22,6 +22,16 @@ article {
position: absolute; top: 0;
}
}
+ .entry-author {
+ margin-top: -24px;
+ margin-bottom: 20px;
+ }
+ .author-gravatar {
+ float: right;
+ img {
+ width: 100px;
+ }
+ }
@media only screen and (min-width: 768px) {
margin-bottom: 1.5em;
padding-bottom: 1em;
@@ -1,10 +1,18 @@
{% unless page.no_header %}
<header>
+ {% if post.gravatar_hash %}
+ <div class="author-gravatar">
+ <img src="http://www.gravatar.com/avatar/{{post.gravatar_hash}}" alt="{{post.author}}" />
+ </div>
+ {% endif %}
{% if index %}
<h1 class="entry-title"><a href="{{ root_url }}{{ post.url }}">{% if site.titlecase %}{{ post.title | titlecase }}{% else %}{{ post.title }}{% endif %}</a></h1>
{% else %}
<h1 class="entry-title">{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %}</h1>
{% endif %}
+ {% if post.author %}
+ <div class="entry-author">by {{post.author}}</div>
+ {% endif %}
{% unless page.meta == false %}
<p class="meta">
{% include post/date.html %}{{ time }}
@@ -4,6 +4,7 @@ title: "How Steel City Ruby Conf Came to Be"
date: 2012-05-03 22:19
comments: true
author: Carol Nichols
+gravatar_hash: 2ac88413948aad12e279e0d9609e7f74
categories:
---
Once upon a time, in an IRC room not so far away, a few people from the
@@ -4,6 +4,7 @@ title: "Why You Shouldn't Code Alone"
date: 2012-05-04 08:03
comments: true
author: Corey Purcell
+gravatar_hash: 64847e261e75b839eb460127fb065f78
---

0 comments on commit f07ac7d

Please sign in to comment.