Added documentHTMLWithFrontMatter template variable
This commit is contained in:
parent
134fddc4aa
commit
f54a37481b
@ -59,6 +59,7 @@ define([
|
||||
documentMarkdown: selectedFileDesc.content,
|
||||
strippedDocumentMarkdown: selectedFileDesc.content.substring(selectedFileDesc.frontMatter ? selectedFileDesc.frontMatter._frontMatter.length : 0),
|
||||
documentHTML: htmlWithoutComments,
|
||||
documentHTMLWithFrontMatter: (selectedFileDesc.frontMatter ? selectedFileDesc.frontMatter._frontMatter : '') + htmlWithoutComments,
|
||||
documentHTMLWithComments: htmlWithComments,
|
||||
frontMatter: selectedFileDesc.frontMatter,
|
||||
publishAttributes: undefined,
|
||||
|
@ -10,10 +10,12 @@ Available variables:
|
||||
<li>
|
||||
<b>documentHTML</b>: document in HTML format</li>
|
||||
<li>
|
||||
<b>frontMatter</b>: YAML front matter object (undefined if not present)</li>
|
||||
<b>documentHTMLWithFrontMatter</b></li>
|
||||
<li>
|
||||
<b>publishAttributes</b>: attributes of the publish location (undefined if
|
||||
not publishing)</li>
|
||||
<b>frontMatter</b>: undefined if no front matter</li>
|
||||
<li>
|
||||
<b>publishAttributes</b>: undefined if
|
||||
not publishing</li>
|
||||
</ul>
|
||||
<b>Examples:</b>
|
||||
<br /><title><%= documentTitle %></title>
|
||||
|
@ -79,6 +79,7 @@ define([
|
||||
documentMarkdown: fileDesc.content,
|
||||
strippedDocumentMarkdown: fileDesc.content.substring(fileDesc.frontMatter ? fileDesc.frontMatter._frontMatter.length : 0),
|
||||
documentHTML: html.withoutComments,
|
||||
documentHTMLWithFrontMatter: (fileDesc.frontMatter ? fileDesc.frontMatter._frontMatter : '') + html.withoutComments,
|
||||
documentHTMLWithComments: html.withComments,
|
||||
frontMatter: fileDesc.frontMatter,
|
||||
publishAttributes: publishAttributes
|
||||
|
Loading…
Reference in New Issue
Block a user