Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2022-10-17 17:46:57 +0300
committerMark Otto <markdotto@gmail.com>2022-11-11 21:29:06 +0300
commit2659de88e6dea366e5b72bb41f9a155c100632ad (patch)
tree8edba5c36979131b5fe6939eee7db5d5fc15a9d4
parentf80fee9b180927fa71a4aab01ee3398df0ec21db (diff)
wip: add prev/next links to bottom of docs pages
-rw-r--r--site/layouts/_default/docs.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/site/layouts/_default/docs.html b/site/layouts/_default/docs.html
index 2ad46376fd..91ceb11a7b 100644
--- a/site/layouts/_default/docs.html
+++ b/site/layouts/_default/docs.html
@@ -59,6 +59,23 @@
{{ end }}
{{ .Content }}
+
+ {{ if or (.Page.Params.Next) (.Page.Params.prev) }}
+ <div class="d-flex justify-content-between border-top pt-5 mt-5">
+ {{ if .Page.Params.Prev }}
+ <a class="d-flex flex-column text-decoration-none text-body-emphasis" href="/docs/{{ .Site.Params.docs_version }}/{{ .Page.Params.group }}/{{ .Page.Params.Prev }}">
+ <span class="opacity-50">Previous</span>
+ <span>{{ .Page.Params.Prev | title }}</span>
+ </a>
+ {{ end }}
+ {{ if .Page.Params.Next }}
+ <a class="d-flex flex-column align-items-end text-decoration-none text-body-emphasis" href="/docs/{{ .Site.Params.docs_version }}/{{ .Page.Params.group }}/{{ .Page.Params.Next }}">
+ <span class="opacity-50">Next</span>
+ <span>{{ .Page.Params.Next | title }}</span>
+ </a>
+ {{ end }}
+ </div>
+ {{ end }}
</div>
</main>
</div>