We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b29c441 commit 6effe9bCopy full SHA for 6effe9b
layouts/shortcodes/heatmap.html
@@ -141,14 +141,16 @@
141
hideDelay: 1000,
142
enterable: true,
143
formatter: function (params) {
144
+ const thousandWordsText = {{ .Get "language" }} === "EN" ? 'k words': '千字';
145
+ const thousandWords = (params.data[1]/1000.0).toFixed(1);
146
const date = params.data[0];
147
const posts = postsByDate.get(date).get("posts");
148
var content = `${date}`;
149
for (const [i, post] of posts.entries()) {
150
content += "<br>";
151
var link = post.get("link");
152
var title = post.get("title");
- content += `<a href="${link}" target="_blank">${title}</a>`
153
+ content += `<a href="${link}" target="_blank">${title} | ${thousandWords}${thousandWordsText}</a>`
154
}
155
return content;
156
0 commit comments