@openstack_dev/gatsby-theme-marketing-oif-core 1.0.21 → 1.0.23

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/gatsby-config.js CHANGED
@@ -20,6 +20,8 @@ try {
20
20
  const title = siteSettings?.siteMetadata?.title || process.env.GATSBY_METADATA_TITLE;
21
21
  const description = siteSettings?.siteMetadata?.description
22
22
  || process.env.GATSBY_METADATA_DESCRIPTION;
23
+ const siteUrl = siteSettings?.siteMetadata?.siteUrl || process.env.GATSBY_METADATA_SITE_URL;
24
+
23
25
  const faviconAsset = siteSettings?.favicon?.asset;
24
26
 
25
27
  const manifestPlugin = faviconAsset
@@ -248,6 +250,7 @@ module.exports = {
248
250
  siteMetadata: {
249
251
  title,
250
252
  description,
253
+ siteUrl,
251
254
  },
252
255
  plugins,
253
256
  flags: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openstack_dev/gatsby-theme-marketing-oif-core",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "Base theme for Marketing Sites",
5
5
  "author": "smarcet",
6
6
  "keywords": [
@@ -41,11 +41,11 @@ function SearchBar({ isMobile, isMobileMenuOpen, onSearchBarOpen }) {
41
41
  }
42
42
  }, [isSearchBarOpen]);
43
43
 
44
+ const searchWidgetBaseUrl = getEnvVariable(SEARCH_WIDGET_BASE_URL);
45
+
44
46
  return (
45
47
  <>
46
- <Script
47
- src={`${getEnvVariable(SEARCH_WIDGET_BASE_URL)}/widget/embed.min.js`}
48
- />
48
+ <Script src={`https://${searchWidgetBaseUrl}/widget/embed.min.js`} />
49
49
  {isMobile ? (
50
50
  <Box
51
51
  className={`${styles.openstackSearchBarMobile} openstack-search-bar ossw-mobile`}
@@ -58,7 +58,7 @@ function SearchBar({ isMobile, isMobileMenuOpen, onSearchBarOpen }) {
58
58
  height: { xs: isMobileMenuOpen ? "auto" : 0, md: 0 },
59
59
  color: "#8a959e",
60
60
  }}
61
- data-baseurl={getEnvVariable(SEARCH_WIDGET_BASE_URL)}
61
+ data-baseurl={searchWidgetBaseUrl}
62
62
  data-context="www-openstack"
63
63
  />
64
64
  ) : (