fix(ci): remove unused vars
This commit is contained in:
parent
77acd7c517
commit
be188323e0
3 changed files with 4 additions and 12 deletions
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
const { frontmatter, post } = Astro.props;
|
||||
const { frontmatter } = Astro.props;
|
||||
---
|
||||
|
||||
<html lang="en">
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue