Browse Source

mostra autore/data meglio

boyska 3 years ago
parent
commit
567057f027
2 changed files with 7 additions and 2 deletions
  1. 4 0
      templates/base.html
  2. 3 2
      templates/news.html

+ 4 - 0
templates/base.html

@@ -9,6 +9,10 @@
     margin: 1em;
     border: 1px solid blue;
 }
+.article > header > div {
+    text-align: right;
+    font-style: italic;
+}
 </style>
     </body>
     <div>

+ 3 - 2
templates/news.html

@@ -1,10 +1,11 @@
 {% extends "base.html" %}
 {% block content %}
-<article>
+<article class="article">
     <header> <h1>{{n.title}}</h1>
-        <div>
+        <div class="published">
         <time> {{n.published_datetime.strftime("%d %b %Y - %H:%M")}}</time>
         </div>
+        <div class="author">{{n.author}}</div>
     </header>
     <div class="article-body">
         {{n.body|safe}}