我是 bllli !欢迎来到我的数字花园!

这里有我平时的一些笔记、想法、技术分享等内容,希望对你有所帮助。

// Update this object
const trackerData = {
    entries: [],
    separateMonths: true,
    heatmapTitle: "This is the title for your heatmap",
    heatmapSubtitle: "This is the subtitle for your heatmap. You can use it as a description.",
}
 
// Path to the folder with notes
const PATH_TO_YOUR_FOLDER = "daily notes preview/notes";
// Name of the parameter you want to see on this heatmap
const PARAMETER_NAME = 'steps';
 
// You need dataviewjs plugin to get information from your pages
for(let page of dv.pages(`"${PATH_TO_YOUR_FOLDER}"`).where((p) => p[PARAMETER_NAME])){
    trackerData.entries.push({
        date: page.file.name,
        intensity: page[PARAMETER_NAME],
        content: await dv.span(`[](${page.file.name})`)
    });
}
 
renderHeatmapTracker(this.container, trackerData);

我的积累

关于我

  • AI 应用研发,主要适用 python
  • Python CURDer
  • Ingress 玩家

联系方式

  • email: me#bllli.cn ( # → @ )
  • telegram: @bllli086