Skip to content

Commit

Permalink
Fix astro-icon using
Browse files Browse the repository at this point in the history
  • Loading branch information
otoyo committed Jan 8, 2025
1 parent c4b1890 commit 3ceca47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { defineConfig } from 'astro/config';
import icon from "astro-icon";
import { CUSTOM_DOMAIN, BASE_PATH } from './src/server-constants';
import CoverImageDownloader from './src/integrations/cover-image-downloader';
import CustomIconDownloader from './src/integrations/custom-icon-downloader';
Expand Down Expand Up @@ -36,6 +37,7 @@ export default defineConfig({
site: getSite(),
base: BASE_PATH,
integrations: [
icon(),
CoverImageDownloader(),
CustomIconDownloader(),
FeaturedImageDownloader(),
Expand Down
2 changes: 1 addition & 1 deletion src/components/SearchButton.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import { Icon } from 'astro-icon'
import { Icon } from 'astro-icon/components';
---

<button class="search-button open-search-modal" type="button"><Icon name="octicon:search-24" /><span>Search</span></button>
Expand Down

0 comments on commit 3ceca47

Please sign in to comment.