Available variables:
-
documentTitle: document title
-
documentMarkdown: document in Markdown format
-
strippedDocumentMarkdown: document without front matter
-
documentHTML: document in HTML format
-
frontMatter: YAML front matter object (undefined if not present)
-
publishAttributes: attributes of the publish location (undefined if
not publishing)
Examples:
<title><%= documentTitle %></title>
<div><%- documentHTML %></div>
<%
if(publishAttributes.provider.providerId == "github") print(documentMarkdown);
%>
More
info
Careful! Template is subject to malicious code. Don't copy/paste untrusted
content.