gatsby-core-theme 30.0.46 → 30.0.47
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [30.0.47](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v30.0.46...v30.0.47) (2024-01-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* added lang value to .env ([3571ad7](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/3571ad7b0f9b929c13e546a654e313e056b733cf))
|
|
7
|
+
* added prop to hide captions ([ce903f6](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/ce903f67e1f8ff2de59ed976440802633e78e7b3))
|
|
8
|
+
* remove quote marks ([0c5b5d6](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/0c5b5d6e9b85bd8072d3a6bbd18c85968ee44058))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
* Merge branch 'tm-3969-html-lang' into 'master' ([b94b620](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/b94b62097c889162e9b18915ef3e4239397971a8))
|
|
12
|
+
|
|
1
13
|
## [30.0.46](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v30.0.45...v30.0.46) (2024-01-08)
|
|
2
14
|
|
|
3
15
|
|
package/package.json
CHANGED
|
@@ -7,10 +7,15 @@ import LazyImage from '~hooks/lazy-image';
|
|
|
7
7
|
import { imagePrettyUrl, getAltText } from '~helpers/getters';
|
|
8
8
|
import styles from './default-slide.module.scss';
|
|
9
9
|
|
|
10
|
-
const Slide = ({
|
|
10
|
+
const Slide = ({
|
|
11
|
+
item = {},
|
|
12
|
+
imageSizes = { width: null, height: 930 },
|
|
13
|
+
slideTitle = '',
|
|
14
|
+
hideCaptions = false,
|
|
15
|
+
}) => {
|
|
11
16
|
return (
|
|
12
17
|
<>
|
|
13
|
-
{item.title && <span className={styles.title || ''}>{item.title}</span>}
|
|
18
|
+
{item.title && !hideCaptions && <span className={styles.title || ''}>{item.title}</span>}
|
|
14
19
|
{item.image && (
|
|
15
20
|
<LazyImage
|
|
16
21
|
className={styles.image || ''}
|
|
@@ -35,6 +40,7 @@ Slide.propTypes = {
|
|
|
35
40
|
}),
|
|
36
41
|
primaryBtnText: PropTypes.string,
|
|
37
42
|
secondaryBtnText: PropTypes.string,
|
|
43
|
+
hideCaptions: PropTypes.bool,
|
|
38
44
|
imageSizes: PropTypes.shape({ width: PropTypes.any, height: PropTypes.any }),
|
|
39
45
|
slideTitle: PropTypes.string,
|
|
40
46
|
};
|
|
@@ -6,6 +6,7 @@ import { getUrl, getPageImage, imagePrettyUrl } from '~helpers/getters';
|
|
|
6
6
|
import keygen from '~helpers/keygen';
|
|
7
7
|
|
|
8
8
|
export function getLanguage(language) {
|
|
9
|
+
if (process.env.GATSBY_SITE_LANG) return process.env.GATSBY_SITE_LANG;
|
|
9
10
|
if (language === 'no') return 'nb-NO';
|
|
10
11
|
return language || 'en';
|
|
11
12
|
}
|