]> git.bitcoin.ninja Git - blog/commitdiff
Use <time>
authorChris Barrick <cbarrick1@gmail.com>
Fri, 8 Aug 2014 06:58:47 +0000 (02:58 -0400)
committerChris Barrick <cbarrick1@gmail.com>
Thu, 21 Aug 2014 04:37:37 +0000 (00:37 -0400)
_layouts/default.html
_layouts/post.html
index.html

index 61620f22a4a05083c5730b33ddf7846ed8bd3c8e..78f482511f3937d1fef7da71df82e74e91511171 100644 (file)
@@ -17,7 +17,7 @@
 
       <div class="footer">
         <p>
-          &copy; {{ site.time | date: '%Y' }}. All rights reserved.
+          &copy; <time datetime="{{ site.time | date_to_xmlschema}}">{{ site.time | date: '%Y' }}</time>. All rights reserved.
         </p>
       </div>
     </div>
index bcf449df2ef724f720df1da7c5a7afecb0a50dfd..576bba8579931e47237c9ae51243365787765121 100644 (file)
@@ -4,7 +4,7 @@ layout: default
 
 <article class="post">
   <h1 class="post-title">{{ page.title }}</h1>
-  <span class="post-date">{{ page.date | date_to_string }}</span>
+  <time datetime="{{ page.date | date_to_xmlschema }}" class="page-date">{{ page.date | date_to_string }}</time>
   {{ content }}
 </article>
 
@@ -16,7 +16,7 @@ layout: default
         <h3>
           <a href="{{ site.baseurl }}{{ post.url }}">
             {{ post.title }}
-            <small>{{ post.date | date_to_string }}</small>
+            <small><time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_string }}</time></small>
           </a>
         </h3>
       </li>
index a59be77043c9775703422eb3b9bb7c08eb73e587..ff6de99ff908c1645a22bbaff5bdbeb93bbf4bcb 100644 (file)
@@ -12,7 +12,7 @@ title: Home
       </a>
     </h1>
 
-    <span class="post-date">{{ post.date | date_to_string }}</span>
+    <time datetime="{{ post.date | date_to_xmlschema }}" class="post-date">{{ post.date | date_to_string }}</time>
 
     {{ post.content }}
   </article>