<ul class="posts">
    {% for events in github %}
    <li class="post">
        <div class="post-thumbnail">
        </div>
        <div class="post-content">
            <div class="post-date">{{ post['published'] }}</div>
            <div class="post-author"><a href="{{'/users/' + post['author']['id'] }}">{{ post['author']['displayname'] }}</a></div>
            <div class="post-body">
                <a href="{{url_for('.post', id=post.id)}}">{{ post['title'] }}</a>
            </div>
            {% if post['contentType'] != "text/x-markdown" %}
                <div class="post-body">{{ post['content'] }}</div>
                {% for post_id, image_data in image.items() %}
                    {% if post_id == post['id'] %}
                    <div class="post-image">
                        <img src="data:;base64, {{image_data}}" alt=""/>
                    </div>
                    {% endif %}
                {% endfor %}
            {% else %}
                <div class="post-body">{{ post['content'] | markdown}}</div>
                {% for post_id, image_data in image.items() %}
                    {% if post_id == post['id'] %}
                    <div class="post-image">
                        <img src="data:;base64, {{image_data}}" alt=""/>
                    </div>
                    {% endif %}
                {% endfor %}
            {% endif %}
        </div>

        <div class="post-footer">
            {% if current_user.id == post.author_id and show%}
            <a href="">
                <span class="label label-primary">Edit</span>
            </a>
            <a href="">
                <span class="label label-primary">Delete</span>
            </a>
            {% endif %}
        </div>
    </li>
    {% endfor %}
</ul>

Add github stream to the index page
Add github stream to the index page
