fix: cleanup

This commit is contained in:
Barrett Ruth 2025-11-09 14:55:50 -05:00
parent 16850cf468
commit 04308592ff
7 changed files with 8 additions and 8 deletions

View file

@ -38,4 +38,4 @@
} }
</style> </style>
<script type="module" src="/scripts/index.js"></script> <script src="/scripts/index.js"></script>

View file

@ -40,4 +40,4 @@ const promptText = topic ? `barrett@ruth:~$ ${topic}` : "barrett@ruth:~$";
} }
</style> </style>
<script type="module" src="/scripts/index.js"></script> <script src="/scripts/index.js"></script>

View file

@ -10,7 +10,7 @@ const { frontmatter, post } = Astro.props;
<link rel="stylesheet" href="/styles/posts.css" /> <link rel="stylesheet" href="/styles/posts.css" />
<link rel="stylesheet" href="/styles/git.css" /> <link rel="stylesheet" href="/styles/git.css" />
<slot name="head" /> <slot name="head" />
<script type="module" src="/scripts/index.js"></script> <script src="/scripts/index.js"></script>
</head> </head>
<body> <body>
<header class="post-header"> <header class="post-header">

View file

@ -72,9 +72,9 @@ const topicColor = getTopicColor(post?.collection);
</div> </div>
<Fragment slot="scripts"> <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> <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" /> <slot name="scripts" />
</Fragment> </Fragment>
</BaseLayout> </BaseLayout>

View file

@ -11,7 +11,7 @@ gists.sort(sortItem);
<BaseLayout title={title}> <BaseLayout title={title}>
<slot name="head" slot="head"> <slot name="head" slot="head">
<link rel="stylesheet" href="/styles/index.css" /> <link rel="stylesheet" href="/styles/index.css" />
<script type="module" src="/scripts/index.js"></script> <script src="/scripts/index.js"></script>
</slot> </slot>
<div class="content"> <div class="content">

View file

@ -11,7 +11,7 @@ repos.sort(sortItem);
<BaseLayout title={title}> <BaseLayout title={title}>
<slot name="head" slot="head"> <slot name="head" slot="head">
<link rel="stylesheet" href="/styles/index.css" /> <link rel="stylesheet" href="/styles/index.css" />
<script type="module" src="/scripts/index.js"></script> <script src="/scripts/index.js"></script>
</slot> </slot>
<div class="content"> <div class="content">

View file

@ -64,5 +64,5 @@ for (const c of CATS) {
<script slot="scripts" define:vars={{ postsByCategory }}> <script slot="scripts" define:vars={{ postsByCategory }}>
window.postsByCategory = postsByCategory; window.postsByCategory = postsByCategory;
</script> </script>
<script slot="scripts" type="module" src="/scripts/index.js"></script> <script slot="scripts" src="/scripts/index.js"></script>
</BaseLayout> </BaseLayout>