Selaa lähdekoodia

Remove span around timestamp

Update #102
Talha Mansoor 11 vuotta sitten
vanhempi
commit
dca25b0de5
3 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 2 2
      static/css/elegant.css
  2. 1 1
      templates/categories.html
  3. 1 1
      templates/tags.html

+ 2 - 2
static/css/elegant.css

@@ -549,7 +549,7 @@ ul.list-articles-category {
     list-style: none outside none;
     margin: 0 0 0 5px;
 }
-ul.list-articles-category li span {
+ul.list-articles-category li time {
     color: #8F8F8F;
     display: inline-block;
     font: .9em 'PT Sans', 'Helvetica Neue', Arial, Sans-Serif;
@@ -644,8 +644,8 @@ div.recent-posts-time {
     div.recent-posts-time {
         display: block;
     }
-    ul.list-articles-category li span {
         min-width: 100%;
+    ul.list-articles-category li time {
     }
 }
 /* MailChimp */

+ 1 - 1
templates/categories.html

@@ -36,7 +36,7 @@ All categories of the {{ SITENAME|striptags }} blog.
                     <div class="accordion-inner">
                         <ul class="list-articles-category">
                             {% for article in articles %} 
-                            <li><span><time pubdate="pubdate" datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time></span> <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }} {%if article.subtitle %} <small> {{ article.subtitle }} </small> {% endif %} </a></li>
+                            <li><time pubdate="pubdate" datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }} {%if article.subtitle %} <small> {{ article.subtitle }} </small> {% endif %} </a></li>
                             {% endfor %}
                         </ul>
                     </div>

+ 1 - 1
templates/tags.html

@@ -42,7 +42,7 @@ All tags used in the {{ SITENAME|striptags }} blog.
         <h2 id="{{ tag.slug }}-ref" class="tag-title">{{ tag }}</h2>
         <ul class="articles-in-tag list-articles-category">
             {% for article in articles|sort(reverse = true, attribute = 'date') %}
-            <li><span><time pubdate="pubdate" datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time></span> <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }} {%if article.subtitle %} <small> {{ article.subtitle }} </small> {% endif %} </a></li>
+            <li><time pubdate="pubdate" datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }} {%if article.subtitle %} <small> {{ article.subtitle }} </small> {% endif %} </a></li>
             {% endfor %}
         </ul>