How to use templates in Logseq?
- •
- •
A template has the tag #Template. A template allows for block(s) and their children to be easily copied. To create a template, write the name of the template in a new block and tag the block with #Template. Then add children blocks (however many levels deep) under the template block. To insert a copy of a template, use the /Template command.
When creating a template block, there is an optional Apply template to tags property to use. This property provides interesting automation whenever a tagged node is created for a configured tag. For example, create a template and configure the property to apply to #Journal. Now whenever a journal page is created, the template gets applied at the top of the page. If a tag is configured with multiple templates, the templates are applied in succession. When a tagged node is a block instead of a page e.g. #Task, the template is applied as the first child of the block. Templates can apply to built-in and user tags.
- •