@openeventkit/event-site 1.0.29 → 1.0.30
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/package.json
CHANGED
package/src/pages/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { connect } from "react-redux";
|
|
4
4
|
import { graphql } from "gatsby";
|
|
5
|
+
import Seo from "../components/Seo";
|
|
5
6
|
import MarketingPageTemplate from "../templates/marketing-page-template";
|
|
6
7
|
import withRealTimeUpdates from "@utils/real_time_updates/withRealTimeUpdates";
|
|
7
8
|
import withFeedsWorker from "@utils/withFeedsWorker";
|
|
@@ -151,4 +152,6 @@ const mapStateToProps = ({
|
|
|
151
152
|
});
|
|
152
153
|
|
|
153
154
|
export default connect(mapStateToProps, {
|
|
154
|
-
})(withFeedsWorker(withRealTimeUpdates(MarketingPage)));
|
|
155
|
+
})(withFeedsWorker(withRealTimeUpdates(MarketingPage)));
|
|
156
|
+
|
|
157
|
+
export const Head = () => <Seo />;
|
|
@@ -3,8 +3,11 @@ import PropTypes from "prop-types";
|
|
|
3
3
|
import { connect } from "react-redux";
|
|
4
4
|
import { graphql } from "gatsby";
|
|
5
5
|
import { Redirect } from "@gatsbyjs/reach-router";
|
|
6
|
+
import Seo from "../components/Seo";
|
|
6
7
|
import Layout from "../components/Layout";
|
|
7
8
|
import Content, { HTMLContent } from "../components/Content";
|
|
9
|
+
import { titleFromPathname } from "../utils/urlFormating";
|
|
10
|
+
|
|
8
11
|
|
|
9
12
|
import { USER_REQUIREMENTS } from "../cms/config/collections/contentPagesCollection"
|
|
10
13
|
|
|
@@ -78,3 +81,12 @@ export const contentPageQuery = graphql`
|
|
|
78
81
|
}
|
|
79
82
|
}
|
|
80
83
|
`;
|
|
84
|
+
|
|
85
|
+
export const Head = ({
|
|
86
|
+
location
|
|
87
|
+
}) => (
|
|
88
|
+
<Seo
|
|
89
|
+
title={titleFromPathname(location.pathname)}
|
|
90
|
+
pathname={location.pathname}
|
|
91
|
+
/>
|
|
92
|
+
);
|
|
@@ -115,15 +115,3 @@ SchedulePage.propTypes = {
|
|
|
115
115
|
};
|
|
116
116
|
|
|
117
117
|
export default withScheduleData(SchedulePage);
|
|
118
|
-
|
|
119
|
-
export const Head = ({
|
|
120
|
-
location,
|
|
121
|
-
pageContext
|
|
122
|
-
}) => {
|
|
123
|
-
return (
|
|
124
|
-
<Seo
|
|
125
|
-
title="Schedule"
|
|
126
|
-
pathname={location.pathname}
|
|
127
|
-
/>
|
|
128
|
-
);
|
|
129
|
-
}
|