Skip to content

Commit 6ff420c

Browse files
committed
ListPage: Add initial mf list page
1 parent fcf4bba commit 6ff420c

File tree

2 files changed

+45
-2
lines changed

2 files changed

+45
-2
lines changed

layouts/_default/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
});
5858

5959
// swap out v1 and v2 elements
60-
const v1ElementIds = ["sidebar", "footer", "toc", "api", "search-v1", "breadcrumb-v1"]
60+
const v1ElementIds = ["sidebar", "footer", "toc", "api", "search-v1", "breadcrumb-v1", "list-v1"]
6161

6262
v1ElementIds.forEach((elementId) => {
6363
const element = document.getElementById(elementId);

layouts/_default/list.html

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,53 @@
11
{{ define "main" }}
2-
<div class="row flex-xl-nowrap">
2+
<div class="row flex-xl-nowrap" id="list-v1">
33
<nav class="sidenav overflow-auto col-md-3 d-none d-xl-block d-print-none">
44
{{ partial "sidebar.html" . }}
55
</nav>
66
<main class="content col-xl-9 d-block" role="main">
77
{{ partial "list-main" . }}
88
</main>
99
</div>
10+
11+
{{/* mf list page */}}
12+
13+
<main class="content col d-block align-top content-has-toc" role="main">
14+
<section class="main-layout">
15+
<div class="sidebar-layout">
16+
<nav data-mf="true" id="sidebar-v2" class="sidebar" style="display:none;">
17+
{{ partial "sidebar-v2.html" . }}
18+
</nav>
19+
</div>
20+
21+
22+
23+
<section class="content-layout" data-mf="true" style="display: none">
24+
<section class="breadcrumb-layout" data-mf="true" style="display: none;">
25+
{{ if not .IsHome }}
26+
{{ if not (in .Params.display_breadcrumb "false" ) }}
27+
{{ partial "breadcrumb" .}}
28+
{{ end }}
29+
{{ end }}
30+
</section>
31+
<div class="text-content">
32+
<h1>{{ .Title }}</h1>
33+
{{ .Content }}
34+
35+
<hr>
36+
{{ if .Page.Lastmod }}
37+
<div class="last-modified">
38+
Last modified {{ .Page.Lastmod.Format "January 2, 2006" }}
39+
</div>
40+
{{ end }}
41+
42+
</main>
43+
44+
</div>
45+
</section>
46+
</section>
47+
48+
49+
50+
</section>
51+
</main>
1052
{{ end }}
53+

0 commit comments

Comments
 (0)