feat: fix stuff
This commit is contained in:
parent
c08e4ce9d5
commit
90e139a22f
7 changed files with 26 additions and 17 deletions
|
|
@ -91,14 +91,10 @@ const capitalizedCategory =
|
|||
</style>
|
||||
|
||||
<script define:vars={{ category }}>
|
||||
import { getTopicColor } from "../utils/colors.js";
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
document.documentElement.style.setProperty(
|
||||
"--topic-color",
|
||||
getTopicColor(category),
|
||||
window.getTopicColor(category),
|
||||
);
|
||||
|
||||
window.getTopicColor = getTopicColor;
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
import BaseLayout from "../layouts/BaseLayout.astro";
|
||||
import { getCollection } from "astro:content";
|
||||
import { getTopicColor } from "../utils/colors.js";
|
||||
|
||||
const title = "Barrett Ruth";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue