|
|
<!DOCTYPE html>
|
|
|
<html>
|
|
|
<head>
|
|
|
<meta charset="utf-8">
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
<title>Front Matter</title>
|
|
|
<link rel="stylesheet" href="style.css" type="text/css" media="all" />
|
|
|
<link rel="shortcut icon" href="favicon.ico" />
|
|
|
</head>
|
|
|
<body>
|
|
|
<nav class="big">
|
|
|
|
|
|
<a href="01-introduction.html">Introduction</a>
|
|
|
|
|
|
<a href="02-markdown.html">Markdown</a>
|
|
|
|
|
|
<a href="03-frontmatter.html" class = "current">Front Matter</a>
|
|
|
|
|
|
<a href="04-structure.html">Structure</a>
|
|
|
|
|
|
</nav>
|
|
|
<nav class="small">
|
|
|
|
|
|
|
|
|
<a href="02-markdown.html">
|
|
|
<span class="icon">
|
|
|
<svg class="icon-arrow-left">
|
|
|
<use xlink:href="icons.svg#icon-arrow-left">
|
|
|
</svg>
|
|
|
</span>
|
|
|
</a>
|
|
|
|
|
|
<span class="title">Front Matter</span>
|
|
|
|
|
|
|
|
|
<a href="04-structure.html">
|
|
|
<span class="icon">
|
|
|
<svg class="icon-arrow-right">
|
|
|
<use xlink:href="icons.svg#icon-arrow-right">
|
|
|
</svg>
|
|
|
</span>
|
|
|
</a>
|
|
|
|
|
|
</nav>
|
|
|
<article><p>Each <code>.md</code> file can optionally contain a header with metadata describing the document. If the header isn’t present, default values will be used which may look ugly.</p>
|
|
|
<p>To insert a header into a <code>.md</code> file, insert three dashes (<code>---</code>), followed by a new-line, followed by the front matter contents, followed by a newline, then another three dashes and a new-line. The metadata is in the <a href="https://github.com/toml-lang/toml">TOML</a> format, so for example the front-matter (and first line) for this file looks like:</p>
|
|
|
<pre style="background-color:#2d2d2d;">
|
|
|
<span style="background-color:#515151;color:#d3d0c8;">---
|
|
|
</span><span style="color:#d3d0c8;">title = "Front Matter"
|
|
|
</span><span style="color:#6699cc;">---
|
|
|
</span><span style="color:#d3d0c8;">
|
|
|
</span><span style="color:#d3d0c8;">Each </span><span style="color:#99cc99;">`.md`</span><span style="color:#d3d0c8;"> file can optionally contain a header with metadata describing the document. If the header isn't present, default values will be used which may look ugly.
|
|
|
</span></pre>
|
|
|
<h2><a href="#supported-keys" aria-hidden="true" class="anchor" id="headersupported-keys"></a>Supported Keys</h2>
|
|
|
<p>The list of supported keys is subject to change, but for now it is as follows:</p>
|
|
|
<dl><dt>
|
|
|
<p>title</p>
|
|
|
</dt>
|
|
|
<dd>
|
|
|
<p>A human-readable title for the document</p>
|
|
|
</dd>
|
|
|
</dl>
|
|
|
</article>
|
|
|
</body>
|
|
|
</html> |