diff options
author | Mark Otto <markdotto@gmail.com> | 2022-11-13 22:37:11 +0300 |
---|---|---|
committer | Mark Otto <markdotto@gmail.com> | 2022-11-13 22:37:11 +0300 |
commit | 495feae7dee6626091c41b86f3daf60dc0e9f578 (patch) | |
tree | 37fa3324b40e13353007fa7c623f0a1fdb8c7684 | |
parent | 1a33235adce370dcf36c96d9509e7ce64beaf660 (diff) |
Test out previous and next docs links
-rw-r--r-- | site/content/docs/5.2/getting-started/download.md | 2 | ||||
-rw-r--r-- | site/content/docs/5.2/getting-started/introduction.md | 1 | ||||
-rw-r--r-- | site/layouts/_default/docs.html | 17 |
3 files changed, 20 insertions, 0 deletions
diff --git a/site/content/docs/5.2/getting-started/download.md b/site/content/docs/5.2/getting-started/download.md index f3965807a5..954209a0d6 100644 --- a/site/content/docs/5.2/getting-started/download.md +++ b/site/content/docs/5.2/getting-started/download.md @@ -4,6 +4,8 @@ title: Download description: Download Bootstrap to get the compiled CSS and JavaScript, source code, or include it with your favorite package managers like npm, RubyGems, and more. group: getting-started toc: true +prev: introduction +next: contents --- ## Compiled CSS and JS diff --git a/site/content/docs/5.2/getting-started/introduction.md b/site/content/docs/5.2/getting-started/introduction.md index f0072bf855..3308f144a0 100644 --- a/site/content/docs/5.2/getting-started/introduction.md +++ b/site/content/docs/5.2/getting-started/introduction.md @@ -8,6 +8,7 @@ aliases: - "/docs/getting-started/" - "/getting-started/" toc: true +next: Download --- ## Quick start diff --git a/site/layouts/_default/docs.html b/site/layouts/_default/docs.html index d534f2c045..fb7580b55a 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 class="fw-semibold">{{ .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 class="fw-semibold">{{ .Page.Params.Next | title }}</span> + </a> + {{ end }} + </div> + {{ end }} </div> </main> </div> |