cmdesigns 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cmdesigns",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "An attempt at putting common chrissx Media design elements into a library.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -14,6 +14,9 @@
14
14
  "src",
15
15
  "index.ts"
16
16
  ],
17
+ "dependencies": {
18
+ "astro-favicon": "^0.0.2"
19
+ },
17
20
  "devDependencies": {
18
21
  "astro": "^3.0.13"
19
22
  },
@@ -1,9 +1,10 @@
1
1
  ---
2
+ import Favicon from "astro-favicon";
2
3
  import Footer from "./Footer.astro";
3
4
 
4
5
  export interface Props {
5
6
  title: string;
6
- favicon: `${string}.svg${string}`;
7
+ favicon: string;
7
8
  lang: string;
8
9
  copyrightstart: any;
9
10
  }
@@ -16,7 +17,7 @@ let { title, favicon, lang, copyrightstart } = Astro.props;
16
17
  <head>
17
18
  <meta charset="UTF-8" />
18
19
  <meta name="viewport" content="width=device-width" />
19
- <link rel="icon" type="image/svg+xml" href={favicon} />
20
+ <Favicon src={favicon} />
20
21
  <meta name="generator" content={Astro.generator} />
21
22
  <title>{title}</title>
22
23
  </head>