feat(post): first draft of styling
This commit is contained in:
parent
4a558df078
commit
4b035c0c0c
3 changed files with 89 additions and 34 deletions
8
scripts/post.js
Normal file
8
scripts/post.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
const h2s = document.querySelectorAll("article h2");
|
||||
|
||||
h2s.forEach((h2) => {
|
||||
const mdHeading = document.createElement("span");
|
||||
mdHeading.textContent = "# ";
|
||||
mdHeading.style.color = "#0073e6";
|
||||
h2.prepend(mdHeading);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue