tecitheme 0.3.2 → 0.3.3

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.
@@ -47,7 +47,7 @@
47
47
  export let date;
48
48
  export let lastmod;
49
49
  export let summary;
50
- export let images = [];
50
+ export let image;
51
51
  export let layout;
52
52
  export let page_sections;
53
53
 
@@ -58,18 +58,10 @@
58
58
  url = getContext("currentURL");
59
59
  host = getContext("currentHost");
60
60
 
61
- if (images.length > 0) {
62
- if (dev) {
63
- featuredImage = images[0];
64
- } else {
65
- featuredImage =
66
- "https://teci-files.imgix.net/www/images/" +
67
- images[0] +
68
- "?w=1200&h=627&fit=crop&auto=compress&auto=format";
69
- }
61
+ if (image) {
62
+ featuredImage = "https://teci-files.imgix.net/www/images/" + image + "?w=1200&h=627&fit=crop&auto=compress&auto=format";
70
63
  } else {
71
- featuredImage =
72
- "https://teci-files.imgix.net/www/images/teci_icon_250.png";
64
+ featuredImage = "https://teci-files.imgix.net/www/images/teci_icon_250.png";
73
65
  }
74
66
  </script>
75
67
 
@@ -2,13 +2,13 @@
2
2
  /** @typedef {typeof __propDef.events} BlocksEvents */
3
3
  /** @typedef {typeof __propDef.slots} BlocksSlots */
4
4
  export default class Blocks extends SvelteComponentTyped<{
5
- summary: any;
6
5
  title: any;
7
6
  date: any;
8
7
  lastmod: any;
8
+ summary: any;
9
+ image: any;
9
10
  layout: any;
10
11
  page_sections: any;
11
- images?: any[];
12
12
  }, {
13
13
  [evt: string]: CustomEvent<any>;
14
14
  }, {
@@ -21,13 +21,13 @@ export type BlocksSlots = typeof __propDef.slots;
21
21
  import { SvelteComponentTyped } from "svelte";
22
22
  declare const __propDef: {
23
23
  props: {
24
- summary: any;
25
24
  title: any;
26
25
  date: any;
27
26
  lastmod: any;
27
+ summary: any;
28
+ image: any;
28
29
  layout: any;
29
30
  page_sections: any;
30
- images?: any[];
31
31
  };
32
32
  events: {
33
33
  [evt: string]: CustomEvent<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tecitheme",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "svelte": true,
5
5
  "devDependencies": {
6
6
  "@jsdevtools/rehype-toc": "^3.0.2",