fix(ci): remove unused vars

This commit is contained in:
Barrett Ruth 2025-11-09 14:57:22 -05:00
parent 77acd7c517
commit be188323e0
3 changed files with 4 additions and 12 deletions

View file

@ -1,5 +1,5 @@
---
const { frontmatter, post } = Astro.props;
const { frontmatter } = Astro.props;
---
<html lang="en">

View file

@ -20,15 +20,7 @@ interface Props {
}
const { frontmatter, post } = Astro.props as Props;
const { title, description, useKatex = false, useD3 = false } = frontmatter;
const filePath = post?.id ?? "";
const categoryFromId = (filePath.split("/")[0] ?? "").replace(
/\.(mdx?|MDX?)$/,
"",
);
const category =
(frontmatter.category ?? post?.collection ?? categoryFromId) || "";
const { title, description, useKatex = false } = frontmatter;
let documentTitle = title;
if (post?.collection === "git" && post?.slug) {

View file

@ -61,8 +61,8 @@ for (const c of CATS) {
<div class="posts" id="posts"></div>
</div>
<script slot="scripts" define:vars={{ postsByCategory }}>
<script slot="scripts" define:vars={{ postsByCategory }} is:inline>
window.postsByCategory = postsByCategory;
</script>
<script slot="scripts" src="/scripts/index.js"></script>
<script slot="scripts" src="/scripts/index.js" is:inline></script>
</BaseLayout>