cmdesigns 0.1.5 → 0.1.6

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Footer.astro +7 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cmdesigns",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "An attempt at putting common chrissx Media design elements into a library.",
5
5
  "type": "module",
6
6
  "repository": {
package/src/Footer.astro CHANGED
@@ -4,6 +4,7 @@ export interface Props {
4
4
  end?: number;
5
5
  rightsholder?: string;
6
6
  link?: string;
7
+ build?: string;
7
8
  }
8
9
 
9
10
  let {
@@ -11,6 +12,7 @@ let {
11
12
  end = new Date().getFullYear(),
12
13
  rightsholder = "chrissx Media",
13
14
  link,
15
+ build,
14
16
  } = Astro.props;
15
17
 
16
18
  const years = start == end ? start : start + "-" + end;
@@ -19,7 +21,8 @@ const s = `Copyright © ${years} ${rightsholder}`;
19
21
 
20
22
  <footer>
21
23
  <slot />
22
- {link ? <a href={link} set:html={s} /> : <Fragment set:html={s} />}
24
+ {build && (link ? <a href={link}>{build}</a> : <span>{build}</span>)}
25
+ {link ? <a href={link} set:html={s} /> : <span set:html={s} />}
23
26
  </footer>
24
27
 
25
28
  <style>
@@ -30,7 +33,9 @@ const s = `Copyright &copy; ${years}&nbsp;${rightsholder}`;
30
33
  padding-top: 1.25em;
31
34
  color: #c0c0c0;
32
35
  }
33
- a {
36
+ a,
37
+ span {
38
+ display: block;
34
39
  color: #c0c0c0;
35
40
  text-decoration: none;
36
41
  }