feat(daily): november 8th's daily

This commit is contained in:
Barrett Ruth 2024-11-09 12:18:31 -05:00
parent 872ce457f2
commit 1d9979fd00
3 changed files with 189 additions and 0 deletions

View file

@ -19,6 +19,7 @@ const postMapping = new Map([
[
"Algorithms",
[
{ name: "leetcode daily", link: "leetcode-daily" },
{ name: "extrema circular buffer", link: "extrema-circular-buffer" },
{ name: "two pointers", link: "two-pointers" },
],

View file

@ -34,6 +34,7 @@ const setStyle = (h) => {
const mdHeading = document.createElement("span");
const header = tagToHeader.has(h.tagName) ? tagToHeader.get(h.tagName) : "";
mdHeading.textContent = `${header} `;
mdHeading.style.color = getTopicColor(urlToTopic());
h.prepend(mdHeading);
};