Skip to content

Commit ec0547d

Browse files
committed
fix: missing packages & misc build errors
1 parent e72af9b commit ec0547d

File tree

4 files changed

+76
-4
lines changed

4 files changed

+76
-4
lines changed

package-lock.json

Lines changed: 57 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,17 @@
4343
"rehype-document": "^7.0.3",
4444
"rehype-external-links": "^3.0.0",
4545
"rehype-katex": "^7.0.1",
46+
"rehype-pretty-code": "^0.14.1",
4647
"remark-emoji": "^5.0.1",
4748
"remark-math": "^6.0.0",
4849
"tailwind-merge": "^3.3.0",
4950
"tailwindcss": "^4.1.7",
50-
"typescript": "^5.8.3"
51+
"typescript": "^5.8.3",
52+
"xml2js": "^0.6.2"
5153
},
5254
"devDependencies": {
5355
"@iconify-icons/tabler": "^1.2.95",
56+
"@types/xml2js": "^0.4.14",
5457
"prettier": "^3.5.1",
5558
"prettier-plugin-astro": "^0.14.1",
5659
"prettier-plugin-astro-organize-imports": "^0.4.11",

src/components/ProjectCard.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const { project } = Astro.props
2626
<div class="relative max-w-[200px] sm:flex-shrink-0 relative">
2727
<div
2828
class="placeholder rounded-xl bg-gray-200 dark:bg-gray-900"
29-
id={`placeholder-${project.data.title}`}
29+
id={`placeholder-${project.data.name}`}
3030
>
3131
<div class="h-[105px] w-[200px] rounded-xl bg-gray-200 dark:bg-gray-900 flex items-center justify-center ">
3232
<Icon name="lucide:image" class="h-10 w-10 text-gray-400 dark:text-gray-700" />

src/layouts/Layout.astro

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,21 @@ const isDev = import.meta.env.DEV; // true when in development mode
8383
</div>
8484
</main>
8585
<Footer />
86-
<div aria-hidden="true" class="pointer-events-none fixed inset-x-0 bottom-0 z-10 h-16 bg-gradient-to-b from-transparent to-[var(--background))] dark:bg-gradient-to-b dark:from-transparent dark:to-[var(--background))]"></div>
86+
<div aria-hidden="true" class="z-20 pointer-events-none fixed inset-x-0 bottom-0 z-10 h-16 bg-gradient-to-b from-transparent to-[var(--background))] dark:bg-gradient-to-b dark:from-transparent dark:to-[var(--background))]"></div>
8787
</div>
8888
<div class="mb-4"/>
89+
<script>
90+
function hideMobileTOC() {
91+
const tocContainer = document.getElementById('mobile-toc-container');
92+
if (tocContainer && !window.location.pathname.startsWith('/blog/')) {
93+
tocContainer.style.display = 'none';
94+
} else if (tocContainer) {
95+
tocContainer.style.display = '';
96+
}
97+
}
98+
99+
document.addEventListener('astro:after-swap', hideMobileTOC);
100+
document.addEventListener('astro:page-load', hideMobileTOC);
101+
</script>
89102
</body>
90103
</html>

0 commit comments

Comments
 (0)