Landing pages
Landing pages (_index.md files) are rendered using our list.html layout.
If _index.md_ contains only frontmatter, with no content or nd-landing-page: true, it will render a list of the content.
The most basic _index.md example:
---
title: Default landing page
nd-subtitle: This is a subtitle for a landing page
---This will render the default landing page.
This page shows cards with the title of each page, along with its description, if it’s set.
This page will not get linked to in the sidebar. It can only be accessed through the link in the breadcrumb, or if you have the direct link.
If the _index.md file contains the nd-landing-page: true frontmatter field, and you add some content, you can customize the contents on this page.
The page will also be added to the sidebar with the name of Overview under a section.
This can be treated like any other content page, and supports all expected shortcodes.
---
title: Custom landing page
nd-landing-page: true
nd-subtitle: This is a subtitle for a landing page
---
This is a custom landing page.
This page will not render the default list.Will render the following custom landing page.
Note that theOverviewsection for this page is visible in the sidebar, unlike the default landing page.
Regardless of using default or custom landing pages, nd-subtitle can be used to add a custom subtitle.