docs/layouts
Jason Etcovitch 28efe65bf5
Fix some invalid Liquid (#17705)
* Remove quotes from render paths

* Do the same for includes

* Fix {{{ in breadcrumbs

* Remove some old octicon syntax

* Fix some wonks

* Borked one

* Unchange `render` calls

* Smaller diff

* Even smaller
2021-02-05 13:17:15 -05:00
..
README.md
default.html
dev-toc.html
enterprise-server-releases.html
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
product-landing.html
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.