mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-08 14:13:35 +00:00
- Add title to Table of Contents (add `on_this_page` i18n) - Add back to top link in Table of Contents (add `back_to_top` i18n) - Enable custom HTML in Table of Contents (create `layouts/partials/docs_toc_foot.html`) - Revised alert shortcode style - Enable icons as menu items in main navbar (use HTML in `Name` field) - Enable `[[menu.main_right]]` options for having both left and right aligned main menu links
58 lines
1.4 KiB
HTML
58 lines
1.4 KiB
HTML
{{ partial "header.html" . }}
|
|
{{ partial "navbar.html" . }}
|
|
{{ $current_page := . }}
|
|
|
|
<div class="container-fluid docs">
|
|
<div class="row flex-xl-nowrap">
|
|
<div class="col-12 col-md-3 col-xl-2 docs-sidebar">
|
|
{{ partial "docs_sidebar.html" . }}
|
|
</div>
|
|
|
|
{{ if .Params.toc }}
|
|
<div class="d-none d-xl-block col-xl-2 docs-toc">
|
|
{{ with (i18n "on_this_page") }}
|
|
<p class="docs-toc-title">{{.}}</p>
|
|
{{ end }}
|
|
|
|
{{ .TableOfContents }}
|
|
|
|
<ul class="nav toc-top">
|
|
<li><a href="#">{{ i18n "back_to_top" | default "Back to top" }}</a></li>
|
|
</ul>
|
|
|
|
{{ partial "docs_toc_foot.html" . }}
|
|
</div>
|
|
{{ end }}
|
|
|
|
<main class="col-12 col-md-9 col-xl-8 py-md-3 pl-md-5 docs-content" role="main">
|
|
<div id="search-hits">
|
|
<!-- Search results will appear here -->
|
|
</div>
|
|
<article class="article" itemscope itemtype="http://schema.org/Article">
|
|
|
|
{{ partial "header_image.html" . }}
|
|
|
|
<div class="docs-article-container">
|
|
<h1 itemprop="name">{{ .Title }}</h1>
|
|
|
|
<div class="article-style" itemprop="articleBody">
|
|
{{ .Content }}
|
|
</div>
|
|
|
|
{{ partial "tags.html" . }}
|
|
</div>
|
|
|
|
<div class="body-footer">
|
|
{{ i18n "last_updated" }} {{ $.Lastmod.Format $.Site.Params.date_format }}
|
|
</div>
|
|
|
|
</article>
|
|
|
|
{{ partial "footer_section.html" . }}
|
|
|
|
</main>
|
|
</div>
|
|
</div>
|
|
|
|
{{ partial "footer.html" . }}
|