Introducing Next/Previous links at the bottom of the pages
authorblake <blake@mobiusconsortium.org>
Thu, 24 Oct 2019 19:58:14 +0000 (14:58 -0500)
committercheckoutuser <just_need_to_satisfy_git@yoyo.com>
Tue, 5 May 2020 20:15:22 +0000 (15:15 -0500)
Signed-off-by: blake <blake@mobiusconsortium.org>
docs-antora/ui/src/css/footer.css
docs-antora/ui/src/partials/article.hbs

index 6521947..de01cda 100644 (file)
@@ -13,3 +13,18 @@ footer.footer {
 .footer a {
   color: var(--footer-link-font-color);
 }
+
+.article-footer {
+  width: 100%;
+}
+
+.article-footer .article-footer-next {
+  float: right;
+  width: 35%;
+  text-align: right;
+}
+
+.article-footer .article-footer-previous {
+  float: left;
+  width: 35%;
+}
index 11a5117..293f7ac 100644 (file)
@@ -13,5 +13,13 @@ If you typed the URL of this page manually, please double check that you entered
 <h1 class="page">{{{page.title}}}</h1>
 {{/if}}
 {{{page.contents}}}
+<div class="article-footer">
+    <div class="article-footer-previous">
+        <a href="{{site.path}}{{page.previous.url}}">Previous</a>
+    </div>
+    <div class="article-footer-next">
+        <a href="{{site.path}}{{page.next.url}}">Next</a>
+    </div>
+</div>
 {{/if}}
 </article>