Skip to content

Commit

Permalink
Update to new Astro Icon API
Browse files Browse the repository at this point in the history
  • Loading branch information
orryverducci committed Feb 4, 2024
1 parent b45d8b8 commit e99aa1f
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
### Website ###

# Build output
.astro/
dist/
.output/
functions/\[\[path\]\].js
Expand Down
3 changes: 3 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ import { defineConfig } from "astro/config";

import cloudflare from "@astrojs/cloudflare";

import icon from "astro-icon";

// https://astro.build/config
export default defineConfig({
site: "https://orryverducci.co.uk",
output: "hybrid",
adapter: cloudflare({
mode: "directory"
}),
integrations: [icon()],
image: {
service: {
entrypoint: 'astro/assets/services/noop'
Expand Down
17 changes: 17 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"@fontsource/montserrat": "^5.0.16",
"@hotwired/stimulus": "^3.2.2",
"@hotwired/turbo": "^7.3.0",
"@iconify-json/bi": "^1.1.23",
"@material/animation": "^14.0.0",
"@types/figlet": "^1.5.8",
"astro": "^3.6.4",
Expand Down
1 change: 1 addition & 0 deletions src/env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" />
10 changes: 5 additions & 5 deletions src/layouts/Layout.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'
import "../styles/app.scss";
import "@fontsource/montserrat/400.css";
import "@fontsource/montserrat/400-italic.css";
Expand Down Expand Up @@ -64,12 +64,12 @@ if (date.getMonth() != 12) {
</div>
<nav>
<ul>
<li><a href="/"><Icon pack="bi" name="house" aria-hidden="true" />Home</a></li>
<li><a href="/"><Icon name="bi:house" aria-hidden="true" />Home</a></li>
</ul>
<ul id="social-icons">
<li><a href="https://twitter.com/orryverducci" title="Twitter" target="_blank"><Icon pack="bi" name="twitter" role="img" aria-label="Twitter" /></a></li>
<li><a href="https://github.com/orryverducci/" title="GitHub" target="_blank"><Icon pack="bi" name="github" role="img" aria-label="GitHub" /></a></li>
<li><a href="https://www.linkedin.com/in/orryv/" title="LinkedIn" target="_blank"><Icon pack="bi" name="linkedin" role="img" aria-label="LinkedIn" /></a></li>
<li><a href="https://twitter.com/orryverducci" title="Twitter" target="_blank"><Icon name="bi:twitter" role="img" aria-label="Twitter" /></a></li>
<li><a href="https://github.com/orryverducci/" title="GitHub" target="_blank"><Icon name="bi:github" role="img" aria-label="GitHub" /></a></li>
<li><a href="https://www.linkedin.com/in/orryv/" title="LinkedIn" target="_blank"><Icon name="bi:linkedin" role="img" aria-label="LinkedIn" /></a></li>
</ul>
</nav>
<a id="menu-icon" href="#" data-action="header#toggleMenu">
Expand Down

0 comments on commit e99aa1f

Please sign in to comment.