Blog <% if mode == 'index': %>Index<% else: %>Post <%= post_id %><% end %>

How about going to the index.