chore: remove unused IconSun.svg and clean up Layout.astro styles (#604)

- remove unused `IconSun.svg`
- remove unused styles inside `Layout.astro`
- remove `autofocus: true` option in pagefind initialization
This commit is contained in:
Sat Naing
2026-01-10 21:46:53 +07:00
committed by GitHub
parent c61a75575d
commit 29fe8a30de
3 changed files with 0 additions and 11 deletions
-1
View File
@@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-sun"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0" /><path d="M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7" /></svg>

Before

Width:  |  Height:  |  Size: 466 B

-9
View File
@@ -174,12 +174,3 @@ const structuredData = {
<script src="../scripts/theme.ts"></script>
</body>
</html>
<style>
html,
body {
margin: 0;
width: 100%;
height: 100%;
}
</style>
-1
View File
@@ -45,7 +45,6 @@ const backUrl = SITE.showBackButton ? `${Astro.url.pathname}` : "/";
// Init pagefind ui
const search = new PagefindUI({
element: "#pagefind-search",
autofocus: true,
showImages: false,
showSubResults: true,
processTerm: function (term: string) {