File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @holidayextras/static-site-generator" ,
3
- "version" : " 9.0 .0" ,
3
+ "version" : " 9.1 .0" ,
4
4
"description" : " Holiday Extras Static Site Generator in metalsmith / react" ,
5
5
"repository" : {
6
6
"type" : " git" ,
43
43
"@babel/preset-env" : " ^7.2.0" ,
44
44
"@babel/preset-react" : " ^7.0.0" ,
45
45
"debug" : " ^2.2.0" ,
46
- "react" : " ^ 16.6 .0" ,
47
- "react-dom" : " ^ 16.6 .0" ,
46
+ "react" : " 16.14 .0" ,
47
+ "react-dom" : " 16.14 .0" ,
48
48
"react-redux" : " ^5.0.6" ,
49
- "redux" : " ^3.7.2 " ,
49
+ "redux" : " ^4.2.0 " ,
50
50
"standard" : " ^16.0.4" ,
51
51
"webpack" : " ^4.23.1" ,
52
52
"webpack-cli" : " ^3.1.0"
Original file line number Diff line number Diff line change 1
- const getPrismicContent = ( ) => {
1
+ const getPrismicContent = ( coreParams ) => {
2
+ const opts = Object . assign ( { } , coreParams )
2
3
return ( files , metalsmith , done ) => {
3
4
// Adjusts the pageData from prismic to return the value of the fragment instead of the whole entity
4
5
const getFragmentValues = ( fragment , file , data ) => {
@@ -25,6 +26,7 @@ const getPrismicContent = () => {
25
26
}
26
27
27
28
Object . keys ( files ) . forEach ( file => {
29
+ files [ file ] . dataSource = opts . dataSource
28
30
files [ file ] . pageData = files [ file ] . prismic . page . results [ 0 ] . data
29
31
files [ file ] . pagename = file
30
32
getPrismicData ( files [ file ] . pageData , file )
You can’t perform that action at this time.
0 commit comments