gatsby-core-theme 13.0.5 → 13.0.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
## [13.0.6](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v13.0.5...v13.0.6) (2022-10-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* author date separator and author first name extract ([4167337](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/4167337bd1662e54cc2a860cc5b688aa79328abf))
|
|
7
|
+
* gif cdn ([35f9d31](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/35f9d3186698b4883590e53aa695604a4d08dd15))
|
|
8
|
+
* module title for cards v2 ([338ce09](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/338ce0912e46c76653f4bc944b155578bc1a472d))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
* Merge branch 'TM-3044-replace-author' into 'master' ([a5cd364](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/a5cd364a3d3362fae6b1461b8ab1c56993604a12))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Tests
|
|
15
|
+
|
|
16
|
+
* fix for test script ([f80707f](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/f80707fcfacaafba4c8b5ae1c856daebe1dd9616))
|
|
17
|
+
|
|
1
18
|
## [13.0.5](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v13.0.4...v13.0.5) (2022-10-26)
|
|
2
19
|
|
|
3
20
|
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@ describe('author box component', () => {
|
|
|
24
24
|
// Biography
|
|
25
25
|
expect(getByText('Here goes the biography of the author.')).toBeTruthy();
|
|
26
26
|
// CTA
|
|
27
|
-
expect(getByText('More about Ida
|
|
27
|
+
expect(getByText('More about Ida')).toBeTruthy();
|
|
28
28
|
});
|
|
29
29
|
});
|
|
30
30
|
afterEach(() => {
|
|
@@ -22,7 +22,7 @@ export default function AuthorBox({
|
|
|
22
22
|
email = '../../../images/email.svg',
|
|
23
23
|
date = '',
|
|
24
24
|
dateFormat = 'DD.MM.YYYY',
|
|
25
|
-
dateSeparator = '
|
|
25
|
+
dateSeparator = '/',
|
|
26
26
|
readingTime = '',
|
|
27
27
|
reviewer = {},
|
|
28
28
|
check = '../../../images/check.svg',
|
|
@@ -133,7 +133,7 @@ export default function AuthorBox({
|
|
|
133
133
|
>
|
|
134
134
|
{translate(translations, 'read_more_about', 'More about [author]').replace(
|
|
135
135
|
'[author]',
|
|
136
|
-
author.name
|
|
136
|
+
author.name.split(' ')[0]
|
|
137
137
|
)}
|
|
138
138
|
<FaArrowRight />
|
|
139
139
|
</Link>
|
package/src/helpers/getters.js
CHANGED
|
@@ -137,7 +137,7 @@ export function imagePrettyUrl(filename = 'image.png', width = null, height = nu
|
|
|
137
137
|
: process.env.IMAGE_CDN_URL.replace('filters:format(webp)', '')) ||
|
|
138
138
|
process.env.STORYBOOK_IMAGE_CDN_URL;
|
|
139
139
|
|
|
140
|
-
if (width && height && extension !== 'svg') {
|
|
140
|
+
if (width && height && extension !== 'svg' && extension !== 'gif') {
|
|
141
141
|
const urlPath = '/fit-in';
|
|
142
142
|
const urlSize = `/${width}x${height}`;
|
|
143
143
|
const filters = '/filters:quality(100)';
|
|
@@ -386,7 +386,7 @@ export const getModuleTitle = (module, page) => {
|
|
|
386
386
|
);
|
|
387
387
|
}
|
|
388
388
|
|
|
389
|
-
return module.
|
|
389
|
+
return module.module_title;
|
|
390
390
|
};
|
|
391
391
|
|
|
392
392
|
export const getRoundMinutes = (time) => {
|