docs/layouts
Kevin Heis 8b6e1bed8b
Merge branch 'main' into add-button-for-scrolling-to-top
2021-02-22 14:40:16 -08:00
..
README.md Hello git history spelunker! 2020-09-27 14:10:11 +02:00
default.html Merge branch 'main' into add-button-for-scrolling-to-top 2021-02-22 14:40:16 -08:00
dev-toc.html Fix links to articles/products/categories (#17761) 2021-02-10 14:55:38 -05:00
enterprise-server-releases.html Make heading are semantic while maintaining font-size 2021-01-08 00:08:25 +00:00
error-404.html Move 404 and 500 images to local (#17432) 2021-01-22 21:49:45 +00:00
error-500.html Move 404 and 500 images to local (#17432) 2021-01-22 21:49:45 +00:00
graphql-explorer.html Block a few more things in AIRGAP (#17657) 2021-02-09 23:07:23 +00:00
product-landing.html Block a few more things in AIRGAP (#17657) 2021-02-09 23:07:23 +00:00
product-sublanding.html Fix some invalid Liquid (#17705) 2021-02-05 13:17:15 -05:00
release-notes.html Fix some invalid Liquid (#17705) 2021-02-05 13:17:15 -05:00

README.md

Layouts

The files in this directory are layouts which can be wrapped around pages.

See also includes, which are snippets of HTML or Markdown that can be reused in multiple layouts.

Using Layouts

Be default, layouts/default.html will be used for all pages.

To use a custom layout, add a layout value to the page's frontmatter:

---
title: Hello World
layout: some-layout
---

The example above will use the layouts/some-layout.html layout.

To render a page with no layout, set layout: false.

Writing Layouts

Layout files should have a .html or .md extension, and they must include the string {{ content}} to specify where inner content should be injected.