{lang="blogs"}

{{if \count( $blogs ) || \IPS\blog\Blog::canCreate() || \IPS\Settings::i()->blog_allow_grid}} {{endif}}
{{if \count( $featured )}} {template="featuredEntries" group="browse" params="$featured"} {{endif}} {{if \count( $blogs ) || \IPS\blog\Blog::canCreate() || \IPS\Settings::i()->blog_allow_grid}} {{endif}}
{{if \count($entries)}} {{$count = 0;}} {{if $pagination['page'] == 1}}
{{foreach $entries as $id => $entry}} {{if $count == 2}} {{break;}} {{endif}} {template="indexGridEntry" app="blog" location="front" group="browse" params="$entry, true"} {{$count++;}} {{endforeach}}
{{endif}} {{$count = 1;}} {{$subcount = 0;}}
{{foreach $entries as $id => $entry}} {{$subcount++;}} {{if ( $pagination['page'] == 1 and $subcount > 2 ) or ( $pagination['page'] > 1 and $subcount)}} {template="indexGridEntry" app="blog" location="front" group="browse" params="$entry"} {{if $count % 3 == 0}}
{{endif}} {{$count++;}} {{endif}} {{endforeach}}
{{else}}

{lang="no_entries_yet"}

{{endif}}
{{if $pagination['pages'] > 1}} {template="pagination" app="core" location="global" group="global" params="$pagination['url'], $pagination['pages'], $pagination['page'], $pagination['perpage'], TRUE, 'page'"} {{endif}}