Browse Source

Revert "Revert "pagina news""

This reverts commit 65052eb9fcaeff2bea10fc3a29bff0c0f611f421.
boyska 3 years ago
parent
commit
9ccc17570d
2 changed files with 62 additions and 19 deletions
  1. 27 19
      themes/maya0x17/static/theme.scss
  2. 35 0
      themes/maya0x17/templates/index.html

+ 27 - 19
themes/maya0x17/static/theme.scss

@@ -84,25 +84,6 @@ h1 > (a, a:focus, a:active) { color: $c-titles; }
     }
     strong { font-weight: 800; }
 }
-#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;
@@ -153,6 +134,27 @@ 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;
@@ -177,5 +179,11 @@ 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; }
+

+ 35 - 0
themes/maya0x17/templates/index.html

@@ -1 +1,36 @@
 {% 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 %}