diff --git a/app/__pycache__/__init__.cpython-36.pyc b/app/__pycache__/__init__.cpython-36.pyc index 7ad2377..c21dabf 100644 Binary files a/app/__pycache__/__init__.cpython-36.pyc and b/app/__pycache__/__init__.cpython-36.pyc differ diff --git a/app/__pycache__/auth.cpython-36.pyc b/app/__pycache__/auth.cpython-36.pyc index 48357b4..8960646 100644 Binary files a/app/__pycache__/auth.cpython-36.pyc and b/app/__pycache__/auth.cpython-36.pyc differ diff --git a/app/__pycache__/models.cpython-36.pyc b/app/__pycache__/models.cpython-36.pyc index 1de06e3..0403ff4 100644 Binary files a/app/__pycache__/models.cpython-36.pyc and b/app/__pycache__/models.cpython-36.pyc differ diff --git a/app/__pycache__/routes.cpython-36.pyc b/app/__pycache__/routes.cpython-36.pyc index 097730c..47b0f55 100644 Binary files a/app/__pycache__/routes.cpython-36.pyc and b/app/__pycache__/routes.cpython-36.pyc differ diff --git a/app/static/css/style.css b/app/static/css/style.css index cef82cf..d28cadd 100644 --- a/app/static/css/style.css +++ b/app/static/css/style.css @@ -53,3 +53,7 @@ pre { white-space: pre-wrap; } +.card .card-image img { + max-height: 200px; +} + diff --git a/app/templates/index.html b/app/templates/index.html index 49343f7..95dd11d 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -2,52 +2,38 @@ {% block title %}Blog{% endblock %} {% block content %} - {% if current_user.is_authenticated %} - {% endif %} - {% if posts %}
{% for post in posts %}
-
-
- {{ post.title }} -

{{ post.date() }}

-

{{ post.body | striptags }}

+
+
+ + +
-
- Read +
+ {{ post.title }} +

{{ post.date() }}

+
{% endfor %}
- {% else %}

No posts.

{% endif %} diff --git a/blog.db b/blog.db index 94c8e6c..f2c2cd2 100644 Binary files a/blog.db and b/blog.db differ