Created
October 11, 2025 11:47
-
-
Save Moyf/a5e6972edbd1997e95ef322fddbb09a6 to your computer and use it in GitHub Desktop.
DV Button Examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // put me inside ```dataviewjs``` code block | |
| let content = "" | |
| const baseFolder = "PeriodicNote/晨间日记/" | |
| const dateFormat = "M月/M月d日" | |
| const yesterday = baseFolder+dv.func.dateformat(dv.date('yesterday'), dateFormat) | |
| const today = baseFolder+dv.func.dateformat(dv.date('today'), dateFormat) | |
| content += `<a class="internal-link prev-daily elegant-btn ready" href="${yesterday}">🌙昨天</a>`; | |
| content += `<a class="internal-link prev-daily elegant-btn ready" href="${today}">☀今天的晨间日记</a>`; | |
| dv.el("div", `<div class="breadcrumbs-wrapper"> ${content} </div>`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment