~reedwade/cogito

79f9abe594bed238a83dbe032a91bed8df1ae48e — Reed Wade 3 years ago c721d67
more simple layout
3 files changed, 9 insertions(+), 12 deletions(-)

M cogito/templates/archive.html
M cogito/templates/base.html
M cogito/templates/show.html
M cogito/templates/archive.html => cogito/templates/archive.html +9 -6
@@ 1,16 1,19 @@
{% extends "base.html" %}

{% block body %}
    <div class="page-title">
      <h1>The {{ get_env('OWNER_NAME', 'XXX') }}'s blog</h1>
    </div>
    <div class="posts">
        {% for article in articles %}
        <div class="post">
            <h2>
                <span class="date">{{ article.created_at.strftime('%Y-%m-%d') }}</span>
                <span>
                    <a href="{{ url_for('article_show', id=article.id) }}">{{ article.title }}</a>
                </span>
            </h2>
            <span class="date">{{ article.created_at.strftime('%Y-%m-%d') }}</span>
            <span>
                <a href="{{ url_for('article_show', id=article.id) }}">{{ article.title }}</a>
            </span>
            <p>
            {{ article.teasing|safe }}
            </p>
        </div>
        {% endfor %}


M cogito/templates/base.html => cogito/templates/base.html +0 -3
@@ 9,9 9,6 @@
    </head>
    <body>
        <div class="container">
            <div class="page-title">
              <h1>The {{ get_env('OWNER_NAME', 'XXX') }}'s blog</h1>
            </div>
            <div>
                <article class="content">
                    {% block body %}{% endblock %}

M cogito/templates/show.html => cogito/templates/show.html +0 -3
@@ 1,9 1,6 @@
{% extends "base.html" %}

{% block title %}{{ article.title }}{% endblock %}

{% block body %}
    <h2><span>{{ article.title }}</span></h2>
    <p class="date">
        Published {{ article.created_at.strftime('%Y-%m-%d') }} on <a href="{{ url_for('article_archive') }}">{{ get_env('OWNER_NAME', 'XXX') }}'s blog</a>
    </p>