{% extends 'base.html' %}
{% block content %}

    <div class="index-post-list">
    {% set index = seq().next %}
    {% set odd_even = cycle(['odd', 'even']).next %}
    {% for post in posts %}
        <div class="index-post index-post-id-{{post.id}} index-post-index-{{index()}} index-post-{{odd_even()}}">
            <a href="{{ url_for('get_post', post_id=post.id) }}">
                <h1>{{ post.title }}</h1>
            </a>
            <p>{{ post.date.strftime('%Y-%m-%d') }} - izrik</p>
            <hr/>
        </div>
    {% endfor %}
    </div>

    {% if current_user.is_authenticated %}
        <div class="create-new-post">
            <a href="/new">Create New</a>
        </div>
    {% endif %}

{% endblock %}

{% extends 'base.html' %}
{% block content %}

    <div class="index-post-list">
        {% if current_user.is_authenticated %}
        <div>
            <a href="/new"><span class="glyphicon glyphicon-plus"></span>New Post</a>
        </div>
        {% endif %}
    {% set index = seq().next %}
    {% set odd_even = cycle(['odd', 'even']).next %}
    {% for post in posts %}
        <div class="index-post index-post-id-{{post.id}} index-post-index-{{index()}} index-post-{{odd_even()}}">
            <a href="{{ url_for('get_post', post_id=post.id) }}">
                <h1>{{ post.title }}</h1>
            </a>
            <p>{{ post.date.strftime('%Y-%m-%d') }} - izrik</p>
            <hr/>
        </div>
    {% endfor %}
    </div>

{% endblock %}

Move the 'new post' link to the top of the page.
Move the 'new post' link to the top of the page.
