tecitheme 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.
@@ -10,7 +10,7 @@
10
10
 
11
11
  if (dev && data.image) {
12
12
  backgroundImage = data.image;
13
- } else {
13
+ } else if (data.image) {
14
14
  backgroundImage = 'https://thunderheadeng-www.imgix.net'+data.image+'?w=1200&h=627&fit=crop&auto=compress&auto=format';
15
15
  }
16
16
 
@@ -9,10 +9,10 @@
9
9
  let figureImage;
10
10
  let figureLink;
11
11
 
12
- if (dev) {
12
+ if (dev && image) {
13
13
  figureImage = image
14
14
  figureLink = link ? link : image
15
- } else {
15
+ } else if (image) {
16
16
  figureImage = image.startsWith('http') ? image : 'https://thunderheadeng-www.imgix.net'+image+'?auto=compress&auto=format'
17
17
  figureLink = link ? link : image.startsWith('http') ? image : 'https://thunderheadeng-www.imgix.net'+image
18
18
  }
@@ -7,10 +7,10 @@ import Video from './Video.svelte'
7
7
  let figureImage;
8
8
  let figureLink;
9
9
 
10
- if (dev) {
10
+ if (dev && data.image) {
11
11
  figureImage = data.image
12
12
  figureLink = data.image
13
- } else {
13
+ } else if (data.image) {
14
14
  figureImage = data.image.startsWith('http') ? data.image : 'https://thunderheadeng-www.imgix.net'+data.image+'?w=576&ar=16:9&fit=crop&auto=compress&auto=format'
15
15
  figureLink = data.image.startsWith('http') ? data.image : 'https://thunderheadeng-www.imgix.net'+data.image
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tecitheme",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "svelte": true,
5
5
  "devDependencies": {
6
6
  "@jsdevtools/rehype-toc": "^3.0.2",