view default/blog/item.html @ 16:8cdcbe0d7dee

blog: various appareance improvments: - use new .box classe - article as a maxium size and is expandable on click - display comments in a different way - author and date are now visible - responsive design - placeholders on comment input - transitions - various other improvments
author Goffi <goffi@goffi.org>
date Thu, 04 May 2017 01:00:23 +0200
parents 9a31d2c02f47
children 8fa2fd2e928e
line wrap: on
line source

{% import 'script/css.js' as css %}

{% block item %}
<article id="{{ item.id }}" class="box" onclick="this.classList.toggle('clicked')">
    <header>
        {% block header %}
        <div class="title">{% block blog_title %}{{ item.title_xhtml or item.title or '' }}{% endblock %}</div>
            {% block metadata %}
            <div class="metadata">
            <span class="author">{{item.author}}</span>
            <span class="blog_data">{{item.published | blog_date}}</span>
            </div>

            {% endblock metadata %}
        {% endblock header %}
    </header>

    <div class="content">
        {% block content %}
        {{ item.content_xhtml or item.content or ''}}
        {% endblock content %}
    </div>

    <div class="expand_box">
        <p>
            Click to to expand…
        </p>
    </div>
</article>
{% endblock item %}