From 495feae7dee6626091c41b86f3daf60dc0e9f578 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 13 Nov 2022 11:37:11 -0800 Subject: Test out previous and next docs links --- site/content/docs/5.2/getting-started/download.md | 2 ++ site/content/docs/5.2/getting-started/introduction.md | 1 + site/layouts/_default/docs.html | 17 +++++++++++++++++ 3 files changed, 20 insertions(+) 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) }} +
+ {{ if .Page.Params.Prev }} + + Previous + {{ .Page.Params.Prev | title }} + + {{ end }} + {{ if .Page.Params.Next }} + + Next + {{ .Page.Params.Next | title }} + + {{ end }} +
+ {{ end }} -- cgit v1.2.3