📚
Logseq Tips & Tricks
  • Overview
  • General
    • Getting Started
  • Beginner to Advance Features
    • Aliases
    • Footnotes
    • Templates
    • Customise Left Sidebar Menu
    • Tables
    • On This Day Query Page
  • Intermediate to Advance Features
    • Whiteboards
    • Logseq Sync
    • Dynamic Variables
    • Macros
    • Flashcards / Spaced Repetition
    • Zotero
  • Queries
    • Simple Queries
    • Simple Queries Examples
  • Advance Queries
Powered by GitBook
On this page
  1. Intermediate to Advance Features

Dynamic Variables

Within Templates, and Queriesit is possible to use Dynamic Variables.

Dynamic Variables are syntax that allows you to replace a placeholder with, say, today's date.

To use it, you need to use:<% sample text %>. Replace the sample text with the following:

  • today => [[Today's journal page]]

  • yesterday => [[Yesterday's journal page]]

  • tomorrow => [[Tomorrow's journal page]]

  • time => Current time, e.g. 22:44

  • Last Friday => [[last Friday's date]]

  • current page => [[Current page]]

PreviousLogseq SyncNextMacros

Last updated 2 years ago