From 11403efc6aaca8724e0492e6de809bbc380c186f Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Tue, 10 May 2016 21:50:34 +0200 Subject: [PATCH] Minor blog update --- .../FrontBundle/Resources/public/css/blog.css | 26 ------------------- .../Resources/views/Blog/list.html.twig | 3 ++- 2 files changed, 2 insertions(+), 27 deletions(-) delete mode 100644 src/GergelyPolonkai/FrontBundle/Resources/public/css/blog.css diff --git a/src/GergelyPolonkai/FrontBundle/Resources/public/css/blog.css b/src/GergelyPolonkai/FrontBundle/Resources/public/css/blog.css deleted file mode 100644 index b9778cd..0000000 --- a/src/GergelyPolonkai/FrontBundle/Resources/public/css/blog.css +++ /dev/null @@ -1,26 +0,0 @@ -/* - Document : blog - Created on : 2012.09.14., 14:53:34 - Author : polonkai.gergely - Description: - Purpose of the stylesheet follows. -*/ - -.post { - margin-bottom: 2em; -} - -p.article-date { - text-indent: 0; - font-size: 80%; - color: #7f7f7f; -} - -.paginator { - margin: .5em 0; -} - -.plusone-container { - margin-left: 1em; - display: inline; -} \ No newline at end of file diff --git a/src/GergelyPolonkai/FrontBundle/Resources/views/Blog/list.html.twig b/src/GergelyPolonkai/FrontBundle/Resources/views/Blog/list.html.twig index d17da7b..1ef5a36 100644 --- a/src/GergelyPolonkai/FrontBundle/Resources/views/Blog/list.html.twig +++ b/src/GergelyPolonkai/FrontBundle/Resources/views/Blog/list.html.twig @@ -28,9 +28,10 @@ {{ block('paginator') }} {% if posts|length == 0 %} No posts found. -{% endif %} +{% else %} {% for post in posts %} {% include 'GergelyPolonkaiFrontBundle:Blog:postViewer.html.twig' with {'post': post, 'title_links': true} %} {% endfor %} +{% endif %} {{ block('paginator') }} {% endblock content %}