-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy path_Layout.cshtml
More file actions
40 lines (40 loc) · 1.42 KB
/
_Layout.cshtml
File metadata and controls
40 lines (40 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
@inherits RazorLayoutSlice<ApiLayoutViewModel>
@implements IUsesLayout<Elastic.Documentation.Site._GlobalLayout, GlobalLayoutViewModel>
@functions {
public GlobalLayoutViewModel LayoutModel => Model;
}
@if (Model.BuildType == BuildType.Assembler)
{
@(await RenderPartialAsync(_AssemblerHeader.Create<GlobalLayoutViewModel>(Model)))
}
else
{
@(await RenderPartialAsync(_IsolatedHeader.Create<GlobalLayoutViewModel>(Model)))
}
<div id="main-container" class="flex flex-col items-center">
<div class="max-w-(--max-layout-width) w-full h-full grid
grid-cols-1
md:grid-cols-[var(--max-sidebar-width)_1fr]
">
<div class="lg:grid lg:grid-cols-[1fr_var(--max-sidebar-width)] md:order-2">
<div class="justify-center px-6 lg:px-0">
<main id="content-container" class="w-full flex flex-col relative pb-12 overflow-x-hidden">
<article id="markdown-content" class="content-container markdown-content md:px-4">
<input type="checkbox" class="hidden" id="pages-nav-hamburger">
@await RenderBodyAsync()
</article>
</main>
</div>
@await RenderPartialAsync(_ApiToc.Create(Model.TocItems.ToArray()))
</div>
@await RenderPartialAsync(_PagesNav.Create<GlobalLayoutViewModel>(Model))
</div>
</div>
@if (Model.BuildType == BuildType.Assembler)
{
@(await RenderPartialAsync(_AssemblerFooter.Create<GlobalLayoutViewModel>(Model)))
}
else
{
@(await RenderPartialAsync(_IsolatedFooter.Create<GlobalLayoutViewModel>(Model)))
}