Templates

Templates can be used to customize notes. You can specify a template by --template my_template.txt.

Warning

This feature is experimental and may break at any time.

Examples

Add the note title as heading 1 on top of the note

Template:

# {title}

{body}

Define custom front matter

Template:

---
title: {title}
author: {author}
latitude: {latitude:.3f}
longitude: {longitude:.0f}
altitude: {altitude}
created: {created:%Y-%m-%dT%H:%M:%SZ}
updated: {updated:%Y-%m-%dT%H:%M:%SZ}
tags: {tags}
resources: {resources}
note_links: {note_links}
---

{body}

Define an overview table

Template:

|         |                              |
| ------- | ---------------------------- |
| From    | {author}                     |
| Title   | {title}                      |
| Date    | {created:%Y-%m-%dT%H:%M:%SZ} |

---

{body}