mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 07:33:07 +08:00
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:
@@ -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 |
@@ -174,12 +174,3 @@ const structuredData = {
|
||||
<script src="../scripts/theme.ts"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user