forked from publify/publify
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds hentry microformat support to Publify default theme.
See issue publify#219 for more information.
- Loading branch information
Frédéric de Villamil
committed
Sep 4, 2013
1 parent
5205937
commit 2671fd7
Showing
7 changed files
with
33 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
<div id="article-<%= article.id %>"> | ||
<h2 class='page-header'><%= (controller.controller_name == 'redirect') ? article.title : link_to_permalink(article,article.title) %></h2> | ||
<%= render 'articles/protected_article_content', { :article => article } %> | ||
<%= render 'articles/meta', article: article %> | ||
<article id="article-<%= article.id %>" class='h-entry hentry h-as-note'> | ||
<h2 class='page-header p-name entry-title'><%= (controller.controller_name == 'redirect') ? article.title : link_to_permalink(article,article.title) %></h2> | ||
<div class='e-content entry-content article'> | ||
<%= render 'articles/protected_article_content', { :article => article } %> | ||
<%= render 'articles/meta', article: article %> | ||
</div> | ||
|
||
<div class='comments'> | ||
<%= render 'articles/comment_counter', article: article %> | ||
</div> | ||
</div> | ||
</article> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
<%= render @articles %> | ||
<div class='hfeed'> | ||
<%= render @articles %> | ||
</div> | ||
<div class='paginate'> | ||
<%= paginate(@articles)%> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
<div id="article-<%= article.id %>"> | ||
<h2><%= link_to_permalink(article, article.title) %></h2> | ||
<%= render 'articles/protected_article_content', { :article => article } %> | ||
<%= render 'articles/meta', article: article %> | ||
<article id="article-<%= article.id %>" class='h-entry hentry h-as-note'> | ||
<h2 class='page-header p-name entry-title'><%= link_to_permalink(article, article.title) %></h2> | ||
<div class='e-content entry-content article'> | ||
<%= render 'articles/protected_article_content', { :article => article } %> | ||
<%= render 'articles/meta', article: article %> | ||
</div> | ||
<div class='comments'> | ||
<%= render 'articles/comment_counter', article: article %> | ||
</div> | ||
</div> | ||
</article0> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<h1 class='page-header'><%= link_to @grouping.name, @grouping.permalink_url %></h1> | ||
<%= render :partial => 'article', :collection => @articles %> | ||
<div class='hfeed'> | ||
<%= render :partial => 'article', :collection => @articles %> | ||
</div> | ||
<div id='paginate'> | ||
<%= paginate @articles, { :previous_label => _('Previous'), :next_label => _('Next') } %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
<div id="article-<%= article.id %>"> | ||
<h2 class='page-header'><%= link_to_permalink(article,article.title) %></h2> | ||
<%= render 'articles/protected_article_content', { :article => article } %> | ||
<%= render 'articles/meta', article: article %> | ||
<article id="article-<%= article.id %>" class='h-entry hentry h-as-note'> | ||
<h2 class='page-header p-name entry-title'><%= link_to_permalink(article,article.title) %></h2> | ||
<div class='e-content entry-content article'> | ||
<%= render 'articles/protected_article_content', { :article => article } %> | ||
<%= render 'articles/meta', article: article %> | ||
</div> | ||
<div class='comments'> | ||
<%= render 'articles/comment_counter', article: article %> | ||
</div> | ||
</div> | ||
</article> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
<%= render :partial => 'article', :collection => @articles %> | ||
<div class='hfeed'> | ||
<%= render :partial => 'article', :collection => @articles %> | ||
</div> | ||
|
||
<div id='paginate'> | ||
<%= paginate @articles, { :previous_label => _('Previous'), :next_label => _('Next') } %> | ||
</div> |