diff options
author | Mark Otto <markdotto@gmail.com> | 2022-10-17 17:46:57 +0300 |
---|---|---|
committer | Mark Otto <markdotto@gmail.com> | 2022-11-11 21:29:06 +0300 |
commit | 2659de88e6dea366e5b72bb41f9a155c100632ad (patch) | |
tree | 8edba5c36979131b5fe6939eee7db5d5fc15a9d4 | |
parent | f80fee9b180927fa71a4aab01ee3398df0ec21db (diff) |
wip: add prev/next links to bottom of docs pages
-rw-r--r-- | site/layouts/_default/docs.html | 17 |
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> |