Skip to content

Commit e757033

Browse files
committed
Update layouts for Docsy 0.7
1 parent 78875f8 commit e757033

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

assets/scss/_custom.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ $announcement-size-adjustment: 8px;
1212
}
1313

1414
main {
15+
padding-left: 2rem;
16+
1517
*:not(figure) > img {
1618
max-width: 100%;
1719
}

layouts/docs/baseof.html

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
<div id="nav-sidebar" class="col-12 col-md-3 col-xl-2 td-sidebar d-print-none{{ if .Site.Params.ui.sidebar_resizable }} split{{ end }}">
1919
{{ partial "sidebar.html" . }}
2020
</div>
21-
<div id="maindoc" class="split pl-md-5 row">
22-
<!--main class="col-12 col-md-9 col-xl-8 pl-md-5" role="main"-->
23-
<main role="main" class="col-xl-8" {{ if ne .Params.cid "docsHome" }}data-pagefind-body{{ end }}{{ if (and .IsPage .Params.description ) }} data-pagefind-meta="description:{{ .Params.description }}"{{ end }}>
21+
<main class="col-12 col-md-9 col-xl-8 ps-md-5 docs-main-content" role="main"
22+
{{ if ne .Params.cid "docsHome" }}data-pagefind-body{{ end }}{{ if (and .IsPage .Params.description ) }} data-pagefind-meta="description:{{ .Params.description }}"{{ end }}>
23+
<!-- inside main element -->
2424
{{ if not .Site.Params.ui.breadcrumb_disable }}{{ partial "breadcrumb.html" . }}{{ end }}
2525
{{ block "deprecation_warning" . }}
2626
{{ partial "version-banner.html" . }}
@@ -29,7 +29,7 @@
2929
{{ partial "docs/outdated_content.html" . }}
3030
{{ end }}
3131

32-
{{ block "main" . }}{{ end }}
32+
{{ block "main" . }}
3333
{{- if .HasShortcode "thirdparty-content" -}}
3434
{{ block "thirdparty-disclaimer" . }}
3535
{{ partial "docs/thirdparty-disclaimer.html" . }}
@@ -44,15 +44,11 @@
4444
{{ partial "feedback.html" .Site.Params.ui.feedback }}
4545
{{ end }}
4646
{{ partial "page-meta-lastmod.html" . }}
47-
{{ if (.Site.Config.Services.Disqus.Shortname) }}
48-
<br />
49-
{{ partial "disqus-comment.html" . }}
50-
{{ end }}
51-
</main>
52-
<div class="d-none d-xl-block td-toc d-print-none col-xl-4">
53-
{{ partial "toc.html" . }}
54-
</div>
55-
</div> <!--end of main-content-->
47+
{{ end -}}
48+
</main>
49+
<div class="d-none d-xl-block col-xl-2 td-toc d-print-none">
50+
{{ partial "page-meta-links.html" . }}
51+
</div>
5652
</div>
5753
</div>
5854
</div>

layouts/docs/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{{ T "katacoda_message" | safeHTML }}
66
</div>
77
{{- end -}}
8-
{{ partial "docs/content-page" (dict "ctx" . "page" .) }}
8+
{{ .Content }}
99
<!-- Partial "docs/api-reference-links" determines API reference links for 'partial/page-meta-links.html' -->
1010
{{ partial "docs/api-reference-links" . }}
1111
</div>

0 commit comments

Comments
 (0)