1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- {{ $current_page := . }}
- {{/* Check whether to show breadcrumb navigation. */}}
- {{ $show_breadcrumb := .Params.show_breadcrumb }}
- <div class="container-fluid docs">
- <div class="row flex-xl-nowrap">
- <div class="col-12 col-md-3 col-xl-2 docs-sidebar">
- {{ partial "book_sidebar" . }}
- </div>
- {{/* Show ToC by default. */}}
- {{ if ne .Params.toc false }}
- <div class="d-none d-xl-block col-xl-2 docs-toc">
- {{ partial "hooks/page_toc_start" . }}
- <ul class="nav toc-top">
- <li><a href="#" id="back_to_top" class="docs-toc-title">{{ i18n "on_this_page" }}</a></li>
- </ul>
- {{ .TableOfContents }}
- {{ partial "hooks/page_toc_end" . }}
- </div>
- {{ end }}
- <main class="col-12 col-md-9 col-xl-8 py-md-3 pl-md-5 docs-content" role="main">
- <article class="article">
- <div class="docs-article-container">
- {{ if $show_breadcrumb }}
- {{ partial "components/breadcrumb" $current_page }}
- {{ end }}
- <h1>{{ .Title }}</h1>
- <div class="article-style">
- {{ .Content }}
- </div>
- {{ partial "tags.html" . }}
- {{/* Show next/previous pages by default. */}}
- {{ if ne site.Params.book_section_pager false }}
- <div class="article-widget">
- {{ partial "section_pager" . }}
- </div>
- {{ end }}
- </div>
- <div class="body-footer">
- <p>{{ i18n "last_updated" }} {{ $.Lastmod | time.Format site.Params.locale.date_format }}</p>
- {{ partial "page_edit" . }}
- {{ partial "comments" . }}
- {{ partial "page_related" . }}
- </div>
- </article>
- {{ partial "site_footer" . }}
- </main>
- </div>
- </div>
|