Quellcode durchsuchen

Adds html5 tags and attributes

Talha Mansoor vor 11 Jahren
Ursprung
Commit
f47af4b588
3 geänderte Dateien mit 7 neuen und 3 gelöschten Zeilen
  1. 1 1
      templates/archives.html
  2. 5 1
      templates/article.html
  3. 1 1
      templates/categories.html

+ 1 - 1
templates/archives.html

@@ -15,7 +15,7 @@ All Posts - {{ super() }}
         <ul class="list-all-articles">
             {% for article in dates %}
             <li><a href="/{{ article.url }}">{{ article.title }}</a>
-            <time datetime="{{ article.date }}">{{ article.locale_date }}</time>
+            <time pubdate="pubdate" datetime="{{ article.date }}">{{ article.locale_date }}</time>
             </li>
             {% endfor %}
         </ul>

+ 5 - 1
templates/article.html

@@ -13,6 +13,7 @@
             toc_sidebar.appendChild(table_of_contents);
     }
 </script>
+<article>
 <div class="row-fluid">
     <header class="page_header span12">
     <h1><a href="/{{ article.url }}"> {{ article.title }} {%if article.subtext %} <small> {{ article.subtext }} </small> {% endif %} </a></h1>
@@ -23,11 +24,12 @@
     <div class="span8 offset1 article-content">
         {{ article.content }}
     </div>
+    <section>
     <div class="span2 offset1">
         {% if article.date %} 
         <h4>Published</h4>
         {% set day = article.date.strftime('%d')|int %}
-        <time datetime="{{ article.date }}">{{ article.date.strftime('%b') }} {{ day }} {{- article.date.strftime(', %Y') }}</time>
+        <time pubdate="pubdate" datetime="{{ article.date }}">{{ article.date.strftime('%b') }} {{ day }} {{- article.date.strftime(', %Y') }}</time>
         {% endif %}
         {% if article.modified %} 
         <h4>Last Updated</h4>
@@ -49,7 +51,9 @@
         </ul>
         {% endif %}
     </div>
+    </section>
 </div>
+<article>
 <script type="text/javascript" language="JavaScript">
     moveTOC(); 
 </script>

+ 1 - 1
templates/categories.html

@@ -34,7 +34,7 @@ All Categories - {{ super() }}
                     <div class="accordion-inner">
                         <ul class="list-articles-category">
                             {% for article in articles %} 
-                            <li><span><time datetime="{{ article.date }}">{{ article.locale_date }}</time></span> <a href="{{ article.url }}">{{ article.title }}</a></li>
+                            <li><span><time pubdate="pubdate" datetime="{{ article.date }}">{{ article.locale_date }}</time></span> <a href="{{ article.url }}">{{ article.title }}</a></li>
                             {% endfor %}
                         </ul>
                     </div>