Skip to content

Layouts: give a way to insert default content at top/bottom of the page body #631

@damithc

Description

@damithc

Current: Users can use the layouts feature to configure various defaults for a page e.g., footer, header

Suggested: Give a way to specify some default content to be at the top and bottom of the page body.

Justification: In some cases, the user may want to wrap body content in a div e.g., <div id="main"> or insert a TopNav in every page.

Some options:

  1. Support a top.md and bottom.md within a layout
  2. Support a page.md within a layout e.g.,
<include src="topNav.md" />
<div id="main">
{{ body }}
<hr>
</div>

The advantage of option 2 is that we can even support default <frontmatter>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions