Skip to content

Commit 837b33f

Browse files
committed
ListPage: Add initial mf list page
1 parent ae84628 commit 837b33f

File tree

3 files changed

+59
-3
lines changed

3 files changed

+59
-3
lines changed

assets/css/v2/style.css

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,19 @@ nav {
440440
}
441441
}
442442

443+
.list-page {
444+
--flow-gap: .5rem;
445+
446+
h2 {
447+
font-size: 1.5rem;
448+
margin: 1rem 0 0rem 0;
449+
}
450+
451+
hr {
452+
margin: 1rem 0;
453+
}
454+
}
455+
443456
.api {
444457
margin: 2rem 0 2rem 2rem;
445458
width: 100%;
@@ -1333,7 +1346,7 @@ figure {
13331346
/* HR Lines */
13341347
hr {
13351348
width: 100%;
1336-
border: 1px solid var(--color-divider);
1349+
border-top: 1px solid var(--color-divider);
13371350
}
13381351

13391352
/* FILTHY HACKS BEGIN */

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" data-mf="true" style="display: none">
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">
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 list-page">
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)