docs_layout.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 "docs_sidebar" . }}
  6. </div>
  7. {{ if .Params.toc }}
  8. <div class="d-none d-xl-block col-xl-2 docs-toc">
  9. <ul class="nav toc-top">
  10. <li><a href="#" id="back_to_top" class="docs-toc-title">{{ i18n "on_this_page" }}</a></li>
  11. </ul>
  12. {{ .TableOfContents }}
  13. {{ partial "docs_toc_foot" . }}
  14. </div>
  15. {{ end }}
  16. <main class="col-12 col-md-9 col-xl-8 py-md-3 pl-md-5 docs-content" role="main">
  17. <article class="article">
  18. <div class="docs-article-container">
  19. <h1>{{ .Title }}</h1>
  20. <div class="article-style">
  21. {{ .Content }}
  22. </div>
  23. {{ partial "tags.html" . }}
  24. {{ if site.Params.docs_section_pager }}
  25. <div class="article-widget">
  26. {{ partial "section_pager" . }}
  27. </div>
  28. {{ end }}
  29. </div>
  30. <div class="body-footer">
  31. <p>{{ i18n "last_updated" }} {{ $.Lastmod.Format site.Params.date_format }}</p>
  32. {{ partial "page_edit" . }}
  33. {{ partial "comments" . }}
  34. {{ partial "page_related" . }}
  35. </div>
  36. </article>
  37. {{ partial "site_footer" . }}
  38. </main>
  39. </div>
  40. </div>