gatsby-matrix-theme 26.0.4 → 26.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 +15 -0
- package/package.json +2 -2
- package/src/gatsby-core-theme/components/organisms/head/index.js +8 -1
- package/storybook/public/{925.fd82f22b.iframe.bundle.js → 925.1f5890fd.iframe.bundle.js} +3 -3
- package/storybook/public/{925.fd82f22b.iframe.bundle.js.map → 925.1f5890fd.iframe.bundle.js.map} +1 -1
- package/storybook/public/iframe.html +1 -1
- /package/storybook/public/{925.fd82f22b.iframe.bundle.js.LICENSE.txt → 925.1f5890fd.iframe.bundle.js.LICENSE.txt} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## [26.0.6](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v26.0.5...v26.0.6) (2023-07-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add default hreflang ([7b18211](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/7b18211239c5aa6ad65611c2a379dc80aa5ff3d0))
|
|
7
|
+
* update themes ([2cbedc0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/2cbedc08f3da93ffc286da39f5ba9c05dd0ad43f))
|
|
8
|
+
|
|
9
|
+
## [26.0.5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v26.0.4...v26.0.5) (2023-07-10)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* add hreflangs ([9328993](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/9328993729fa13890fe106fc3e4b505c8ebabf36))
|
|
15
|
+
|
|
1
16
|
## [26.0.4](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v26.0.3...v26.0.4) (2023-07-04)
|
|
2
17
|
|
|
3
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-matrix-theme",
|
|
3
|
-
"version": "26.0.
|
|
3
|
+
"version": "26.0.6",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"description": "Matrix Theme NPM Package",
|
|
6
6
|
"author": "",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@react-icons/all-files": "^4.1.0",
|
|
27
27
|
"gatsby": "^4.20.0",
|
|
28
|
-
"gatsby-core-theme": "24.0.
|
|
28
|
+
"gatsby-core-theme": "24.0.4",
|
|
29
29
|
"gatsby-plugin-sharp": "^4.10.2",
|
|
30
30
|
"gatsby-plugin-sitemap": "^3.3.0",
|
|
31
31
|
"gatsby-transformer-sharp": "^4.10.0",
|
|
@@ -59,7 +59,7 @@ const HeadData = ({ page = {}, siteInfo }) => {
|
|
|
59
59
|
const twitterUsername = getTwitterUsername(page.siteSchema?.twitter);
|
|
60
60
|
const parsedMetaDescr = page.meta_description ? parse(page.meta_description) : '';
|
|
61
61
|
const metaTitle = transformMetaTitle(relation, meta_title, relation_type);
|
|
62
|
-
|
|
62
|
+
let defaultHref = null;
|
|
63
63
|
const isIL = process.env.GATSBY_SITE_NAME === 'irishluck.ie' && 'en-IE';
|
|
64
64
|
|
|
65
65
|
return (
|
|
@@ -78,6 +78,13 @@ const HeadData = ({ page = {}, siteInfo }) => {
|
|
|
78
78
|
<meta name="googlebot" content="noindex,follow" />
|
|
79
79
|
)}
|
|
80
80
|
<link rel="canonical" href={getCanonicalUrl(page)} />
|
|
81
|
+
|
|
82
|
+
{page?.hreflangs?.map((link) => {
|
|
83
|
+
if (link?.default) defaultHref = link?.path;
|
|
84
|
+
return <link rel="alternate" href={getUrl(link.path)} hrefLang={link.language} />;
|
|
85
|
+
})}
|
|
86
|
+
{defaultHref && <link rel="alternate" href={getUrl(defaultHref)} hrefLang="x-default" />}
|
|
87
|
+
|
|
81
88
|
{page.preconnect_links &&
|
|
82
89
|
page.preconnect_links.map((link) => <link key={keygen()} rel="preconnect" href={link} />)}
|
|
83
90
|
<meta property="og:title" content={metaTitle} />
|