]> git.bitcoin.ninja Git - blog/commitdiff
Update index.html
authorMatt Corallo <git@bluematt.me>
Fri, 15 Jan 2016 19:36:25 +0000 (11:36 -0800)
committerMatt Corallo <git@bluematt.me>
Fri, 15 Jan 2016 19:36:25 +0000 (11:36 -0800)
index.html

index 012502c8262bb3dcb9ad70792c621514263e1f03..6e7f0aab24f75c78be4939b3633f48093b7ffdb1 100644 (file)
@@ -5,17 +5,17 @@ title: Home
 
 <div class="posts">
   {% for post in paginator.posts %}
-  <article class="post">
+  <div class="post">
     <h1 class="post-title">
       <a href="{{ site.baseurl }}{{ post.url }}">
         {{ post.title }}
       </a>
     </h1>
 
-    <time datetime="{{ post.date | date_to_xmlschema }}" class="post-date">{{ post.date | date_to_string }}</time>
+    <span class="post-date">{{ post.date | date_to_string }}</span>
 
     {{ post.content }}
-  </article>
+  </div>
   {% endfor %}
 </div>
 
@@ -26,7 +26,11 @@ title: Home
     <span class="pagination-item older">Older</span>
   {% endif %}
   {% if paginator.previous_page %}
-    <a class="pagination-item newer" href="{{ paginator.previous_page_path | prepend: site.baseurl }}">Newer</a>
+    {% if paginator.page == 2 %}
+      <a class="pagination-item newer" href="{{ site.baseurl }}/">Newer</a>
+    {% else %}
+      <a class="pagination-item newer" href="{{ paginator.previous_page_path | prepend: site.baseurl }}">Newer</a>
+    {% endif %}
   {% else %}
     <span class="pagination-item newer">Newer</span>
   {% endif %}