Skip to content

Instantly share code, notes, and snippets.

@mimikun
Created August 23, 2023 11:39
Show Gist options
  • Save mimikun/75f68bd70320b93f01b37648d08b6986 to your computer and use it in GitHub Desktop.
Save mimikun/75f68bd70320b93f01b37648d08b6986 to your computer and use it in GitHub Desktop.
マンスリーノート
// なぜかうまくいかない
<%*
let base = moment(tp.file.title, "YYYY年MM月")
let days_in_month = base.daysInMonth();

// forループ回す
// 1~31日までのリンクを作成
for (let day_i = 1; day_i != days_in_month + 1; day_i++) {
- [[base.date(day_i).format("YYYY年MM月DD日")]]
}
%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment