File tree Expand file tree Collapse file tree 1 file changed +16
-49
lines changed Expand file tree Collapse file tree 1 file changed +16
-49
lines changed Original file line number Diff line number Diff line change @@ -125,15 +125,24 @@ module.exports = {
125
125
) ;
126
126
}
127
127
) ,
128
+
129
+ vote : {
130
+ path ( ) {
131
+ return require ( './components/vote/list.jsx' ) . default
132
+ }
133
+ } ,
128
134
129
- vote : voteList (
130
- 'Voting' ,
131
- {
132
- index : true ,
133
- feedback : true ,
134
- moneyDistribution : true ,
135
+ 'vote/feedback' : {
136
+ path ( ) {
137
+ return require ( './components/vote/list.jsx' ) . default
135
138
}
136
- ) ,
139
+ } ,
140
+
141
+ 'vote/moneyDistribution' : {
142
+ path ( ) {
143
+ return require ( './components/vote/list.jsx' ) . default
144
+ }
145
+ } ,
137
146
138
147
organization : {
139
148
path ( ) {
@@ -200,45 +209,3 @@ function processPage() {
200
209
}
201
210
} ;
202
211
}
203
-
204
- function voteList ( title , lists ) {
205
- return {
206
- title : title ,
207
- path : function ( ) {
208
- function context ( request ) {
209
- var name = / ^ \. \/ ( .* ) \. m d $ / . exec ( request ) [ 1 ] ;
210
- return {
211
- name : name ,
212
- __content : '' // make antwar happy
213
- } ;
214
- }
215
- context . keys = function ( ) {
216
- return Object . keys ( lists ) . map ( k => './' + k + '.md' ) ;
217
- } ;
218
- return context ;
219
- } ,
220
- processPage : {
221
- url : function ( o ) {
222
- return 'vote/' + o . file . name ;
223
- } ,
224
- name : function ( o ) {
225
- return o . file . name ;
226
- } ,
227
- anchors : function ( o ) {
228
- return [ ] ;
229
- } ,
230
- content : function ( o ) {
231
- return '' ;
232
- }
233
- } ,
234
- layouts : {
235
- index : function ( ) {
236
- return require ( './components/vote/list.jsx' ) . default
237
- } ,
238
- page : function ( ) {
239
- return require ( './components/vote/list.jsx' ) . default
240
- }
241
- } ,
242
- redirects : { } // <from>: <to>
243
- } ;
244
- }
You can’t perform that action at this time.
0 commit comments