tema news

This commit is contained in:
boyska 2020-07-18 14:28:18 +02:00
parent f00ffac4f0
commit 815defb65f
2 changed files with 5 additions and 27 deletions

View file

@ -244,7 +244,6 @@ img.left, figure.left {float: left; margin: 0 2em 2em 0;}
Featured Featured
*****************/ *****************/
#featured { #featured {
background: #fff;
margin-bottom: 2em; margin-bottom: 2em;
overflow: hidden; overflow: hidden;
padding: 20px; padding: 20px;
@ -369,8 +368,9 @@ li:last-child .hentry, #content > .hentry {border: 0; margin: 0;}
#content > .hentry {padding: 1em 0;} #content > .hentry {padding: 1em 0;}
.hentry img{display : none ;} .hentry img{display : none ;}
.entry-title {font-size: 3em; margin-bottom: 10px; margin-top: 0;} .entry-title {font-size: 3em; margin-bottom: 10px; margin-top: 0;}
.entry-title a:link, .entry-title a:visited {text-decoration: none; color: #333;} .entry-title a:link, .entry-title a:visited {text-decoration: none; color: #ccc;}
.entry-title a:visited {background-color: #fff;} .entry-title a:visited {background-color: #fff;}
.news article .entry-content { font-family: Arial; }
.hentry .post-info * {font-style: normal;} .hentry .post-info * {font-style: normal;}

View file

@ -1,25 +1,10 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content_title %}{% endblock %} {% block content_title %}{% endblock %}
{% block content %} {% block content %}
<div class="news">
{% if articles %} {% if articles %}
{% for article in articles_page.object_list %} {% for article in articles_page.object_list %}
{# First item #}
{% if loop.first and not articles_page.has_previous() %}
<aside id="featured" class="body">
<article>
<h1 class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1>
{% include 'article_infos.html' %}{{ article.content }}
</article>
</aside><!-- /#featured -->
{% if loop.length > 1 %}
<section id="content" class="body">
<h1>Other articles</h1>
<hr />
<ol id="posts-list" class="hfeed">
{% endif %}
{# other items #}
{% else %}
{% if loop.first %} {% if loop.first %}
<section id="content" class="body"> <section id="content" class="body">
<ol id="posts-list" class="hfeed" start="{{ articles_paginator.per_page -1 }}"> <ol id="posts-list" class="hfeed" start="{{ articles_paginator.per_page -1 }}">
@ -37,7 +22,6 @@
{% include 'comments.html' %} {% include 'comments.html' %}
</div><!-- /.entry-content --> </div><!-- /.entry-content -->
</article></li> </article></li>
{% endif %}
{% if loop.last %} {% if loop.last %}
{% if loop.length > 1 or articles_page.has_other_pages() %} {% if loop.length > 1 or articles_page.has_other_pages() %}
</ol><!-- /#posts-list --> </ol><!-- /#posts-list -->
@ -46,14 +30,8 @@
{% endif %} {% endif %}
</section><!-- /#content --> </section><!-- /#content -->
{% endif %} {% endif %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% else %}
<section id="content" class="body">
<h2>Pages</h2>
{% for page in pages %}
<li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
{% endfor %}
</section>
{% endif %} {% endif %}
</div>
{% endblock content %} {% endblock content %}