blog/layouts
Kazuhiro MUSASHI 746c5079d0 Change the Labs section's pagination to be within the section:
```
--- a/layouts/labs/single.html
+++ b/layouts/labs/single.html
@@ -21,11 +21,11 @@
   </main>

   <nav class="pagination">
-    {{ if .Next }}
-      <span class="previous">&larr; <a href="{{ .Next.Permalink }}" rel="prev">{{ .Next.Title }}</a></span>
+    {{ with .PrevInSection }}
+    <span class="previous">&larr; <a href="{{ .Permalink }}" rel="prev">{{ .Title }}</a></span>
     {{ end }}
-    {{ if .Prev }}
-      <span class="next"><a href="{{ .Prev.Permalink }}" rel="next">{{ .Prev.Title }}</a> &rarr;</span>
+    {{ with .NextInSection }}
+    <span class="next"><a href="{{ .Permalink }}" rel="next">{{ .Title }}</a> &rarr;</span>
     {{ end }}
   </nav>
```
2019-04-14 18:56:42 +08:00
..
labs Change the Labs section's pagination to be within the section: 2019-04-14 18:56:42 +08:00
partials Add the travel section to the section definition. 2019-04-14 16:50:23 +08:00
quotes Customize the pagination to be within the Quotes section. 2019-04-14 15:28:20 +08:00
shortcodes Add a shorcode for TopoJSON support. 2019-04-14 00:29:54 +08:00
travel Display the travel section explanation. 2019-04-14 16:49:56 +08:00