kuch lamba note link

Written by Abodid Sahoo
const p = dv.current();

const d = p.created ? dv.date(p.created) : null;

if (d) {
  dv.paragraph(d.toFormat("d LLLL yyyy · h:mm a"));
}

if (p.type) {
  dv.paragraph(["Type: ", p.type]);
}

if (p.topics?.length) {
  const items = [];
  p.topics.forEach((topic, i) => {
    if (i > 0) items.push(", ");
    items.push(topic);
  });
  dv.paragraph(["Topics: ", ...items]);
}
Share
Go to Main Vault