fix: cleanup
This commit is contained in:
parent
16850cf468
commit
04308592ff
7 changed files with 8 additions and 8 deletions
|
|
@ -10,7 +10,7 @@ const { frontmatter, post } = Astro.props;
|
|||
<link rel="stylesheet" href="/styles/posts.css" />
|
||||
<link rel="stylesheet" href="/styles/git.css" />
|
||||
<slot name="head" />
|
||||
<script type="module" src="/scripts/index.js"></script>
|
||||
<script src="/scripts/index.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<header class="post-header">
|
||||
|
|
|
|||
|
|
@ -72,9 +72,9 @@ const topicColor = getTopicColor(post?.collection);
|
|||
</div>
|
||||
|
||||
<Fragment slot="scripts">
|
||||
<script type="module" src="/scripts/index.js"></script>
|
||||
<script src="/scripts/index.js"></script>
|
||||
<script src="/scripts/centerKatex.js" is:inline></script>
|
||||
{frontmatter.scripts?.map((src) => <script type="module" src={src} />)}
|
||||
{frontmatter.scripts?.map((src) => <script src={src} />)}
|
||||
<slot name="scripts" />
|
||||
</Fragment>
|
||||
</BaseLayout>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue