Skip to content
This repository has been archived by the owner on Apr 30, 2019. It is now read-only.

Latest commit

 

History

History
37 lines (23 loc) · 955 Bytes

Templates.md

File metadata and controls

37 lines (23 loc) · 955 Bytes

Templates

Templates are written using Jade for any page type or Markdown for static pages.

Jade example:

h1 Title
p Content.

Markdown example:

# Title
Content.

Standalone markdown

You do not need a Jade template if your page only uses Markdown.

Jade: Render page markdown

!= app.markdown(page.markdown)

The above Jade template allows you to render your markdown code and apply additional formatting around it.

Globals

Every Jade template has access to the app variable. Page templates can additionally access their own page data via the page variable.

app.markdown

The app.markdown function expects the markdown code as the first parameter and returns the rendered HTML. For details check out remarkable.