@openeventkit/event-site 1.0.11 → 1.0.12
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
|
@@ -18,6 +18,19 @@ catch (e) {
|
|
|
18
18
|
console.log("Falling back to default site settings.")
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
const relativeContentDir = `${__dirname}/${STATIC_CONTENT_DIR_PATH}`;
|
|
22
|
+
const resolvedContentDir = path.resolve(STATIC_CONTENT_DIR_PATH);
|
|
23
|
+
const contentDirs = [relativeContentDir];
|
|
24
|
+
if (relativeContentDir !== resolvedContentDir) {
|
|
25
|
+
contentDirs.unshift(resolvedContentDir);
|
|
26
|
+
};
|
|
27
|
+
const gatsbySourceFilesystemContentConfigs = contentDirs.map(contentDir => ({
|
|
28
|
+
resolve: "gatsby-source-filesystem",
|
|
29
|
+
options: {
|
|
30
|
+
path: contentDir
|
|
31
|
+
}
|
|
32
|
+
}));
|
|
33
|
+
|
|
21
34
|
module.exports = {
|
|
22
35
|
siteMetadata: {
|
|
23
36
|
title: `${siteSettings?.siteMetadata?.title || process.env.GATSBY_METADATA_TITLE || 'Event Site'}`,
|
|
@@ -77,13 +90,7 @@ module.exports = {
|
|
|
77
90
|
name: "pages"
|
|
78
91
|
}
|
|
79
92
|
},
|
|
80
|
-
|
|
81
|
-
resolve: "gatsby-source-filesystem",
|
|
82
|
-
options: {
|
|
83
|
-
path: `${__dirname}/${STATIC_CONTENT_DIR_PATH}`,
|
|
84
|
-
name: "content"
|
|
85
|
-
}
|
|
86
|
-
},
|
|
93
|
+
...gatsbySourceFilesystemContentConfigs,
|
|
87
94
|
"gatsby-plugin-image",
|
|
88
95
|
"gatsby-plugin-sharp",
|
|
89
96
|
"gatsby-transformer-sharp",
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import { connect } from "react-redux";
|
|
3
3
|
import FooterTemplate from "./template";
|
|
4
4
|
|
|
5
|
-
import footerContent from "
|
|
5
|
+
import footerContent from "content/footer/index.json";
|
|
6
6
|
|
|
7
7
|
const Footer = ({ summit, marketing }) => (
|
|
8
8
|
<FooterTemplate
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import Link from "./Link";
|
|
3
3
|
|
|
4
|
-
import footerContent from "
|
|
4
|
+
import footerContent from "content/footer/index.json";
|
|
5
5
|
|
|
6
6
|
import styles from "../styles/footer.module.scss";
|
|
7
7
|
|
|
@@ -22,11 +22,7 @@ const FooterMarketing = () => (
|
|
|
22
22
|
{footerContent.social.networks.map((net, index) => (
|
|
23
23
|
net.display &&
|
|
24
24
|
<Link href={net.link} className={styles.link} key={index}>
|
|
25
|
-
{net.icon
|
|
26
|
-
<img alt="logo" style={{ width: 25, margin: '-10px 10px 0 0' }} src="/img/f_logo_RGB-White_58.png" />
|
|
27
|
-
:
|
|
28
|
-
<i className={`fa icon is-large ${net.icon}`} />
|
|
29
|
-
}
|
|
25
|
+
<i className={`fa icon is-large ${net.icon}`} />
|
|
30
26
|
</Link>
|
|
31
27
|
))}
|
|
32
28
|
</div>
|