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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue