Skip to content

Commit 24f6c25

Browse files
wbazantpreaction
authored andcommitted
Render tags in the packaged themes like in v0
1 parent 66e89c8 commit 24f6c25

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

lib/Statocles/resources/theme/bootstrap/blog.html.ep

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
<header>
88
<h1><a href="<%= url_for( "/$item->{path}" ) %>"><%== $item->{title} %></a></h1>
99

10+
% if ( $item->{tags} ) {
11+
<p class="tags">Tags:
12+
% for my $tag ( @{$item->{tags}} ) {
13+
<a href="<%= url_for( "/tag/$tag") %>" rel="tag"><%== $tag %></a>
14+
% }
15+
</p>
16+
% }
1017
<aside>
1118
<p><time datetime="<%= strftime('%Y-%m-%d', $item->{date}) %>">
1219
Posted on <%= strftime('%Y-%m-%d', $item->{date}) %>

lib/Statocles/resources/theme/default/blog.html.ep

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020
<a data-disqus-identifier="<%= url_for( "/$item->{path}" ) %>" href="<%= url_for( "/$item->{path}" ) %>#disqus_thread">0 comments</a>
2121
% }
2222
</aside>
23+
% if ( $item->{tags} ) {
24+
<p class="tags">Tags:
25+
% for my $tag ( @{$item->{tags}} ) {
26+
<a href="<%= url_for( "/tag/$tag") %>" rel="tag"><%== $tag %></a>
27+
% }
28+
</p>
29+
% }
2330
</header>
2431

2532
% my $sections = sectionize( $item->{html} );

0 commit comments

Comments
 (0)