mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 22:15:11 +00:00
style(docs): remove "Back To Top" and link "Contents" header to top
This commit is contained in:
1 parent
8914b83cd7
commit
3bd21f3a37
3 files changed
+4
-9
No files matched your search
@@ -206,7 +206,6 @@
|
||||
font-size: .875rem;
|
||||
font-weight: 600;
|
||||
padding-left: calc(1.5rem + 1px);
|
||||
margin-bottom: .5rem;
|
||||
}
|
||||
|
||||
#TableOfContents {
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
translation: Table of Contents
|
||||
|
||||
- id: on_this_page
|
||||
translation: On this page
|
||||
translation: Contents
|
||||
|
||||
- id: back_to_top
|
||||
translation: Back to top
|
||||
|
||||
@@ -10,16 +10,12 @@
|
||||
|
||||
{{ 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 }}
|
||||
<ul class="nav toc-top">
|
||||
<li><a href="#" id="back_to_top" class="docs-toc-title">{{ i18n "on_this_page" }}</a></li>
|
||||
</ul>
|
||||
|
||||
{{ .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 }}
|
||||
|
||||
Reference in new issue
Block a user