cmdesigns 0.0.10 → 0.0.11

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.10",
3
+ "version": "0.0.11",
4
4
  "description": "An attempt at putting common chrissx Media design elements into a library.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -15,7 +15,7 @@
15
15
  "index.ts"
16
16
  ],
17
17
  "dependencies": {
18
- "astro-favicon": "^0.0.4"
18
+ "astro-favicon": "^0.0.5"
19
19
  },
20
20
  "devDependencies": {
21
21
  "astro": "^3.0.13"
@@ -4,18 +4,20 @@ import Footer from "./Footer.astro";
4
4
 
5
5
  export interface Props {
6
6
  title: string;
7
- favicon: ImageMetadata;
7
+ favicon: ImageMetadata | string;
8
8
  lang: string;
9
9
  copyrightstart: any;
10
+ description?: string;
10
11
  }
11
12
 
12
- let { title, favicon, lang, copyrightstart } = Astro.props;
13
+ let { title, favicon, lang, copyrightstart, description } = Astro.props;
13
14
  ---
14
15
 
15
16
  <!DOCTYPE html>
16
17
  <html {lang}>
17
18
  <head>
18
19
  <meta charset="UTF-8" />
20
+ {description ? <meta name="description" content={description} /> : undefined}
19
21
  <meta name="viewport" content="width=device-width" />
20
22
  <Favicon src={favicon} />
21
23
  <meta name="generator" content={Astro.generator} />