Revert "pagina news"

This reverts commit 220e6c3f25.
This commit is contained in:
boyska 2020-08-06 00:07:29 +02:00
parent e7379eaef1
commit 65052eb9fc
2 changed files with 19 additions and 62 deletions

View file

@ -86,6 +86,25 @@ h1 > (a, a:focus, a:active) { color: $c-titles; }
max-width: 50em;
margin: auto;
}
#menu-row {
display: none;
position: fixed;
z-index: 20;
top: 3em;
left: 8vw;
background: $c-bg-menu;
width: 89vw;
margin-top: 8vw;
border-radius: 1em;
padding: 1em 0px;
ul { list-style: none; }
font-size: 120%;
> div {
max-width: 15em;
text-align: center;
margin: auto;
}
}
#logo-div {
position: fixed;
top: 5vw;
@ -136,27 +155,6 @@ code {
border: 1px solid #888;
border-radius: 0.4em;
}
// BEGIN menu
#menu-row {
display: none;
position: fixed;
z-index: 20;
top: 3em;
left: 8vw;
background: $c-bg-menu;
width: 89vw;
margin-top: 8vw;
border-radius: 1em;
padding: 1em 0px;
ul { list-style: none; }
font-size: 120%;
> div {
max-width: 15em;
text-align: center;
margin: auto;
}
}
#overlay {
display: block;
position: fixed;
@ -181,11 +179,5 @@ code {
li { display: inline; padding-right: 3em;}
}
}
// END menu
.news > #content { // pagina news
#posts-list { list-style: none; }
.published { text-align: right; font-size: 80%; }
}
// Contenta, 朱莉娅 ?
#talk-maschio-femmina-palle .caps { font-variant-caps: all-small-caps; }

View file

@ -1,36 +1 @@
{% extends "base.html" %}
{% block content_title %}{% endblock %}
{% block content %}
<div class="news">
{% if articles %}
{% for article in articles_page.object_list %}
{% if loop.first %}
<section id="content" class="body">
<ol id="posts-list" class="hfeed" start="{{ articles_paginator.per_page -1 }}">
{% endif %}
<li><article class="hentry">
<header>
<h1><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h1>
</header>
<div class="entry-content">
{% include 'article_infos.html' %}
{{ article.summary }}
<a class="readmore" href="{{ SITEURL }}/{{ article.url }}">read more</a>
</div><!-- /.entry-content -->
</article></li>
{% if loop.last %}
{% if loop.length > 1 or articles_page.has_other_pages() %}
</ol><!-- /#posts-list -->
{% if articles_page.has_other_pages() %}
{% include 'pagination.html' %}
{% endif %}
</section><!-- /#content -->
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
</div>
{% endblock content %}