1
0
mirror of synced 2025-12-26 14:02:45 -05:00
Files
docs/layouts/README.md
Vanessa Yuen 3df90fc9b8 Hello git history spelunker!
Are you looking for something? Here is all of the GitHub Docs history in one single commit. Enjoy! 🎉
2020-09-27 14:10:11 +02:00

30 lines
705 B
Markdown

# Layouts
The files in this directory are layouts which can be wrapped around pages.
See also [includes](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.