docs/layouts
Sarah Schneider 6fb35aae8d
Fix local dev TOC (#20253)
* refactor dev-toc middleware to use new site tree

* refactor dev-toc layout to use new site tree (we can move this to React someday if we want)
2021-07-01 10:05:18 -05:00
..
README.md Hello git history spelunker! 2020-09-27 14:10:11 +02:00
default.html Render color mode settings from github/github cookie (#19275) 2021-05-13 14:45:11 +00:00
dev-toc.html Fix local dev TOC (#20253) 2021-07-01 10:05:18 -05:00
error-404.html Render color mode settings from github/github cookie (#19275) 2021-05-13 14:45:11 +00:00
error-500.html Render color mode settings from github/github cookie (#19275) 2021-05-13 14:45:11 +00:00
graphql-explorer.html Render color mode settings from github/github cookie (#19275) 2021-05-13 14:45:11 +00:00
product-landing.html Landing pages only shows "view all" and "expore all" buttons if a guides page exists (#19914) 2021-06-14 23:59:28 +00:00
product-sublanding.html Render color mode settings from github/github cookie (#19275) 2021-05-13 14:45:11 +00:00
release-notes.html Merge branch 'main' of github.com:github/docs-internal into github-ae-release-notes 2021-05-24 10:00:07 -04: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.