Skip to content

ListPage: Add initial mf list page #204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion assets/css/v2/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,19 @@ nav {
}
}

.list-page {
--flow-gap: .5rem;

h2 {
font-size: 1.5rem;
margin: 1rem 0 0rem 0;
}

hr {
margin: 1rem 0;
}
}

.api {
margin: 2rem 0 2rem 2rem;
width: 100%;
Expand Down Expand Up @@ -1333,7 +1346,7 @@ figure {
/* HR Lines */
hr {
width: 100%;
border: 1px solid var(--color-divider);
border-top: 1px solid var(--color-divider);
}

/* FILTHY HACKS BEGIN */
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
});

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

v1ElementIds.forEach((elementId) => {
const element = document.getElementById(elementId);
Expand Down
45 changes: 44 additions & 1 deletion layouts/_default/list.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,53 @@
{{ define "main" }}
<div class="row flex-xl-nowrap">
<div class="row flex-xl-nowrap" id="list-v1">
<nav class="sidenav overflow-auto col-md-3 d-none d-xl-block d-print-none">
{{ partial "sidebar.html" . }}
</nav>
<main class="content col-xl-9 d-block" role="main">
{{ partial "list-main" . }}
</main>
</div>

{{/* mf list page */}}

<main class="content col d-block align-top content-has-toc" role="main" data-mf="true" style="display: none">
<section class="main-layout">
<div class="sidebar-layout">
<nav data-mf="true" id="sidebar-v2" class="sidebar" style="display:none;">
{{ partial "sidebar-v2.html" . }}
</nav>
</div>



<section class="content-layout" data-mf="true" style="display: none">
<section class="breadcrumb-layout">
{{ if not .IsHome }}
{{ if not (in .Params.display_breadcrumb "false" ) }}
{{ partial "breadcrumb" .}}
{{ end }}
{{ end }}
</section>
<div class="text-content list-page">
<h1>{{ .Title }}</h1>
{{ .Content }}

<hr>
{{ if .Page.Lastmod }}
<div class="last-modified">
Last modified {{ .Page.Lastmod.Format "January 2, 2006" }}
</div>
{{ end }}

</main>

</div>
</section>
</section>



</section>
</main>
{{ end }}

Loading