Skip to content

Commit 2b8f65b

Browse files
committed
ListPage: Add initial mf list page
1 parent 7965cf0 commit 2b8f65b

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
@@ -454,6 +454,19 @@ nav {
454454
}
455455
}
456456

457+
.list-page {
458+
--flow-gap: .5rem;
459+
460+
h2 {
461+
font-size: 1.5rem;
462+
margin: 1rem 0 0rem 0;
463+
}
464+
465+
hr {
466+
margin: 1rem 0;
467+
}
468+
}
469+
457470
.api {
458471
margin: 2rem 0 2rem 2rem;
459472
width: 100%;
@@ -1347,7 +1360,7 @@ figure {
13471360
/* HR Lines */
13481361
hr {
13491362
width: 100%;
1350-
border: 1px solid var(--color-divider);
1363+
border-top: 1px solid var(--color-divider);
13511364
}
13521365

13531366
/* 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)