forked from pulumi/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtopic.html
27 lines (24 loc) · 990 Bytes
/
topic.html
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
{{ define "main" }}
{{ $modulePath := path.Split (path.Dir .Path) }}
{{ $module := .GetPage (path.Dir (string $modulePath)) }}
<div class="container mx-auto flex items-start px-4 md:px-0">
<div class="md:w-2/12 my-8 sticky-sidebar md:pr-8">
<nav>
{{ partial "learn/topics" (dict "context" . "topic" . "module" $module "mode" "sidebar") }}
</nav>
{{ partial "learn/topic-links" (dict "context" .) }}
</div>
<div class="md:w-8/12 my-8">
<header class="container mx-auto">
{{ partial "docs/breadcrumb.html" . }}
<h1>{{ .Title }}</h1>
</header>
<section class="container mx-auto my-8">
{{ .Content }}
</section>
{{ partial "learn/topics-next-prev" (dict "context" . "topic" . "module" $module) }}
</div>
<div class="md:w-2/12 md:ml-8 m8-8 ">
</div>
</div>
{{ end }}