chore: remove astro-icon dependency

This commit is contained in:
Stefan Imhoff
2023-12-15 14:58:48 +01:00
parent a88f5002a6
commit eb54823382
4 changed files with 13 additions and 40 deletions

View File

@@ -1,6 +1,5 @@
---
import '../styles/global.css';
import { Sprite } from 'astro-icon';
import { SEO } from 'astro-seo';
import { site } from '../data/site';
import { isProduction } from '../utils';
@@ -52,7 +51,7 @@ const webManifest = isProduction && {
};
---
<!DOCTYPE html>
<!doctype html>
<html lang="en" class="no-js box-border h-screen scroll-smooth text-[125%]">
<head>
<SEO
@@ -162,15 +161,13 @@ const webManifest = isProduction && {
class="flex grow flex-col bg-shibui-100 font-sans font-normal leading-relaxed text-shibui-950 common-ligatures dark:bg-shibui-900 dark:text-shibui-200/[0.87]"
>
<div class="flex h-screen grow flex-col" id="swup">
<Sprite.Provider>
{header && <PageHeader backLink={backLink} />}
<div class="page-content flex grow">
<main class="h-full w-full" {...pagefind}>
<slot />
</main>
</div>
{footer && <PageFooter />}
</Sprite.Provider>
{header && <PageHeader backLink={backLink} />}
<div class="page-content flex grow">
<main class="h-full w-full" {...pagefind}>
<slot />
</main>
</div>
{footer && <PageFooter />}
</div>
<SearchModal />
<script>

View File

@@ -37,7 +37,6 @@ The source code of this website is available on [GitHub](https://github.com/koga
- My content is written in [MDX](https://mdxjs.com/), which allows using components in the [Markdown](https://daringfireball.net/projects/markdown/).
- I use [Tailwind CSS](https://tailwindcss.com/) for my styling and [tailwindcss-logical](https://stevecochrane.github.io/tailwindcss-logical/) to get logical properties.
- The scroll animations are created with [Sal](https://mciastek.github.io/sal/) and for page transitions I use [Swup](https://swup.js.org/).
- Icons are handled by [Astro Icon](https://github.com/natemoo-re/astro-icon).
- All images are optimized with [Astro ImageTools](https://github.com/RafidMuhymin/astro-imagetools/).
- My site search is build with [Pagefind](https://pagefind.app/) using the [Astro-Pagefind](https://github.com/shishkin/astro-pagefind) integration.
- I use YouTube Lite, provided by [Astro Embed](https://github.com/astro-community/astro-embed).