-
Notifications
You must be signed in to change notification settings - Fork 0
05. Custom pages
Scott J edited this page Sep 11, 2019
·
5 revisions
You should define the meta data by passing it in as variables:
Build a page from a Markdown file.
page_title="My cool page" \
page_descr="Some description" \
new page path/to/some-file.md > some-page.html
Build a page from a string of HTML.
# set a var with HTML
html_body="<h1>My Title</h1>
<p>Some text.</p>"
# create the page
page_title="My cool page" \
page_descr="Some description" \
new page "$html_body" > some-page.htmlBuild a page from a file containing HTML (it should contain only the page body, not including site header/footer).
page_title="My cool page" \
page_descr="Some description" \
new page "$(cat path/to/some-html-in-a-file)" > some-page.html