Permalink
Browse files

improve blog post markup for Instapaper/Readability

  • Loading branch information...
mislav committed Aug 7, 2012
1 parent 6bbd890 commit 52751c4c119fa3f67b4b87c1ec5f2de3dca246be
Showing with 10 additions and 10 deletions.
  1. +7 −7 _layouts/post.html
  2. +1 −1 blog.html
  3. +1 −1 stylesheets/default.css
  4. +1 −1 stylesheets/default.sass
View
@@ -2,24 +2,24 @@
layout: default
---
-<article>
+<article class=hentry>
<header>
{% if page.link %}
-<h1><a href="{{ page.link | escape }}">{{ page.title }}</a>&nbsp;→</h1>
+<h1><a class=entry-title href="{{ page.link | escape }}">{{ page.title }}</a>&nbsp;→</h1>
{% else %}
-<h1>{{ page.title }}</h1>
+<h1 class=entry-title>{{ page.title }}</h1>
{% endif %}
-<p class="subtext">
+<p class="byline author vcard instapaper_ignore entry-unrelated">
{% unless page.link %}
- By <a href="/">Mislav</a>
+ By <a href="/" rel=author class=fn lang=hr>Mislav Marohnić</a>
{% endunless %}
- on <time datetime="{{ page.date | date_to_xmlschema }}" pubdate>{{ page.date | date_to_string }}</time>
+ on <time class=published datetime="{{ page.date | date_to_xmlschema }}" pubdate>{{ page.date | date_to_string }}</time>
</p>
</header>
-<div id="post"{% if page.link %} class=link{% endif %}>
+<div id="post" class="entry-content{% if page.link %} link{% endif %}">
{{ content }}
</div>
View
@@ -10,7 +10,7 @@
<header id=blog>
<h1>{{ page.title }}</h1>
-<p class="subtext">
+<p class=byline>
Writings and linkings by
<a href="/"><strong>Mislav Marohnić</strong></a>
</p>
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -94,7 +94,7 @@ a
h1
margin-bottom: 0.6em
- + p.subtext
+ + .byline
margin-top: -1.2em
margin-bottom: 2em
color: #666

0 comments on commit 52751c4

Please sign in to comment.