book_layout.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. {{ $current_page := . }}
  2. <div class="container-fluid docs">
  3. <div class="row flex-xl-nowrap">
  4. <div class="col-12 col-md-3 col-xl-2 docs-sidebar">
  5. {{ partial "book_sidebar" . }}
  6. </div>
  7. {{/* Show ToC by default. */}}
  8. {{ if ne .Params.toc false }}
  9. <div class="d-none d-xl-block col-xl-2 docs-toc">
  10. <ul class="nav toc-top">
  11. <li><a href="#" id="back_to_top" class="docs-toc-title">{{ i18n "on_this_page" }}</a></li>
  12. </ul>
  13. {{ .TableOfContents }}
  14. {{ partial "docs_toc_foot" . }}
  15. </div>
  16. {{ end }}
  17. <main class="col-12 col-md-9 col-xl-8 py-md-3 pl-md-5 docs-content" role="main">
  18. <article class="article">
  19. <div class="docs-article-container">
  20. <h1>{{ .Title }}</h1>
  21. <div class="article-style">
  22. {{ .Content }}
  23. </div>
  24. {{ partial "tags.html" . }}
  25. {{/* Show next/previous pages by default. */}}
  26. {{ if ne site.Params.book_section_pager false }}
  27. <div class="article-widget">
  28. {{ partial "section_pager" . }}
  29. </div>
  30. {{ end }}
  31. </div>
  32. <div class="body-footer">
  33. <p>{{ i18n "last_updated" }} {{ $.Lastmod.Format site.Params.date_format }}</p>
  34. {{ partial "page_edit" . }}
  35. {{ partial "comments" . }}
  36. {{ partial "page_related" . }}
  37. </div>
  38. </article>
  39. {{ partial "site_footer" . }}
  40. </main>
  41. </div>
  42. </div>