[% title %]

[% DEFAULT title = 'Rapi::Blog' -%]
[% IF scaffold.title %]

# [% scaffold.title %]

[% END %] [% IF scaffold.subtitle %]

[% scaffold.subtitle %]

[% END %]
[% content %]
[% IF scaffold.sidebar_blurb %]
[% sidebar_blurb_template = scaffold.sidebar_blurb %] [% INCLUDE $sidebar_blurb_template %]
[% END %]

#### Popular Tags

[%- SET tags_result = list_tags({limit => 10}) -%] [% FOREACH tag IN tags_result.rows %]
1. [% tag.name %] ([% tag.posts_count %])
[% END %] [% IF tags_result.remaining %] ... see all [[% tags_result.total %]] [% END %] [% IF tags_result.total == 0 %]
2. (no tags yet)
[% END %]

#### Recent Tags

[%- SET tags_result = list_tags({limit => 10,sort => 'recent'}) -%] [% FOREACH tag IN tags_result.rows %]
1. [% tag.name %] ([% tag.posts_count %])
[% END %] [% IF tags_result.remaining %] ... see all [[% tags_result.total %]] [% END %] [% IF tags_result.total == 0 %]
2. (no tags yet)
[% END %]

[% IF scaffold.sidebar_bottom %]
[% sidebar_bottom_template = scaffold.sidebar_bottom %] [% INCLUDE $sidebar_bottom_template %] [% END %]