Template Syntax

When Aino LifeOS creates periodic notes or theme notes, it renders variables in the template before writing the final Markdown file. This syntax is built in and does not require Templater.

Where to Edit in the App

  • Aino Desktop: Open a daily or weekly note, then click Edit Template in the top toolbar. You can also open Settings → Periodic Notes and edit periodic templates or theme templates there.
  • Obsidian: Edit the template file directly in the current vault. Periodic templates are usually under 0. 周期笔记/Templates/ in the example vault, and theme templates are usually Template.md files in project, area, or resource folders.
  • Preview: Aino Desktop's template editor shows common variable examples and a rendered preview, so you can verify changes before saving.

Basic Variables

These variables can be used in periodic note templates and theme note templates:

VariableDescription
{{date}}Current note date, formatted as YYYY-MM-DD
{{date:FORMAT}}Format the current note date with Day.js, such as {{date:YYYY-MM-DD dddd}}
{{date+N:FORMAT}} / {{date-N:FORMAT}}Offset the current note date by N days
{{monday:FORMAT}} ... {{sunday:FORMAT}}Date for a weekday in the current week, useful for embedding daily notes
{{time}}Current time, formatted as HH:mm
{{time:FORMAT}}Format the current time with Day.js
{{title}} / {{filename}}New note filename without .md
{{year}} / {{month}} / {{day}}Year, month, and day
{{week}} / {{weekYear}}Week number and the year that week belongs to
{{quarter}}Quarter, such as Q1
{{periodType}}Period type: Daily, Weekly, Monthly, Quarterly, or Yearly
{{tags}}Theme tag passed when creating a theme note, without the leading #

Weekday Date Variables

In weekly note templates, use {{monday:FORMAT}} through {{sunday:FORMAT}} to reference each day in the current week. Chinese locales default to Monday-start weeks; other locales default to Sunday-start weeks. A custom week-start setting takes precedence.

For example, if your daily note filename is YYYY-MM-DD:

![[{{monday:YYYY-MM-DD}}]]
![[{{tuesday:YYYY-MM-DD}}]]
![[{{wednesday:YYYY-MM-DD}}]]
![[{{thursday:YYYY-MM-DD}}]]
![[{{friday:YYYY-MM-DD}}]]
![[{{saturday:YYYY-MM-DD}}]]
![[{{sunday:YYYY-MM-DD}}]]

If your daily note filename is YYYYMMDD dddd, you can write:

![[{{sunday:YYYYMMDD dddd}}]]

Snapshot Variables

Snapshot variables generate a numbered list of index files under the matching theme folder:

{{snapshot:Project}}
{{snapshot:Area}}
{{snapshot:Resource}}
{{snapshot:Archive}}
{{snapshot:Theme}}

For example, {{snapshot:Project}} scans the project folder, finds each project's index file, and generates:

1. [[1. Projects/Project A/Project A|Project A]]
2. [[1. Projects/Project B/Project B|Project B]]

If the current vault uses the *.README.md index mode, Aino LifeOS follows that setting when finding index files.

Conditional Blocks

You can switch template content between weekdays and weekends:

{{if weekday}}

## Workday Plan

- [ ] Handle today's focus task
      {{else}}

## Weekend Review

- [ ] Do a light review
      {{endif}}

weekday means Monday through Friday. Saturday and Sunday use the content after {{else}}; without {{else}}, weekends output nothing.

Periodic Note Example

## Project List

%%Today's project snapshot%%
{{snapshot:Project}}

## Daily Record

%%Your notes%%

## Tomorrow Reminder

{{date+1:YYYY-MM-DD}}

Theme Note Example

When creating a theme note, {{tags}} is replaced with the current theme tag. When writing it as an inline tag, add # yourself:

---
tags:
  - { { tags } }
---

%%Set the project due date and result description%%

- [ ] #{{tags}} 📅 {{date+7:YYYY-MM-DD}}
- Result description

## Tasks

```LifeOS
TaskListByTag
```

Difference From Legacy Templater Syntax

Aino LifeOS uses the built-in template syntax. Replace legacy Templater placeholders with variables such as {{snapshot:Project}}, {{tags}}, and {{date+7:YYYY-MM-DD}}.