"
{def $parent = $node.parent
$previous_item = false()
$next_item = false()}
{if $parent.class_identifier|eq( 'blog' )}
{def $siblings = fetch( 'content', 'list', hash( 'parent_node_id', $parent.node_id,
'as_object', true(),
'class_filter_type', 'include',
'class_filter_array', array( 'blog_post' ),
'sort_by', array( 'attribute', false(), 'blog_post/publication_date' ),
'limit', 10000 ) )
$index = 0
$node_id = $node.node_id}
{while is_set( $siblings[$index] )}
{if $siblings[$index]['node_id']|eq( $node_id )}
{if $index}
{set $previous_item = fetch( 'content', 'node', hash( 'node_id', $siblings[$index|dec]['node_id'] ))}
{/if}
{if is_set( $siblings[$index|inc] )}
{set $next_item = fetch( 'content', 'node', hash( 'node_id', $siblings[$index|inc]['node_id'] ))}
{/if}
{break}
{/if}
{set $index = $index|inc}
{/while}
{undef $siblings $index $node_id}
"