@@ -344,37 +344,34 @@ namespace :employer do
344
344
rss_hash = {
345
345
"channel" : {
346
346
"title" : { "string" : "Employer Blog" } ,
347
- "link" : { "string" : "https://hiring.careerbuilder.com/promotions/" } ,
348
- "description" : { "string" : "A Blog for Employers" } ,
349
- "category:1" : { "string" : "Employers" } ,
350
- "category:2" : { "string" : "Blog" } ,
351
- "docs" : { "string" : "https://api.cbcortex.com/rss/v2/docs" } ,
352
- "ttl" : { "string" : "30" } ,
353
- "not_in_spec" : { "string" : "Should Not Be Included" }
347
+ "link" : { "string" : "http://resources.careerbuilder.com" } ,
348
+ "description" : { "string" : "News and trends, best practices, product news and more from CareerBuilder's experts." } ,
349
+ "language" : { "string" : "en-US" }
354
350
} ,
355
351
"item" : {
356
352
"title" : { "field" : blog . fields . find_by_name ( 'Title' ) . id } ,
357
353
"link" : { "method" : {
358
354
"name" : "rss_url" ,
359
- "args" : [ "https://hiring .careerbuilder.com/promotions /" , blog . fields . find_by_name ( 'Slug' ) . id ]
355
+ "args" : [ "https://resources .careerbuilder.com/" , blog . fields . find_by_name ( 'Slug' ) . id ]
360
356
}
361
- } ,
362
- "description" : { "field" : blog . fields . find_by_name ( 'Description' ) . id } ,
363
- "content" : { "field" : blog . fields . find_by_name ( 'Body' ) . id , "encode" : true } ,
364
- "author" : { "method" : {
365
- "name" : "user_email" ,
366
- "args" : [ blog . fields . find_by_name ( 'Author' ) . id ]
367
- }
368
357
} ,
369
- "category:1" : { "field" : blog . fields . find_by_name ( 'Tags' ) . id , "multiple" : "," } ,
370
- # "category": { "field": blog.fields.find_by_name('Categories').id, "multiple": true }, Data not persisting, pending bugfix
371
- "guid" : { "attributes" : {
372
- "isPermaLink" : false
373
- } ,
374
- "method" : { "name" : "id" }
375
- } ,
376
358
"pubDate" : { "field" : blog . fields . find_by_name ( 'Publish Date' ) . id } ,
377
- "other_thing_that's_not_in_spec" : { "string" : "Should not appear in RSS Feed for Items" }
359
+ "author" : { "method" : {
360
+ "name" : "user_email" ,
361
+ "args" : [ blog . fields . find_by_name ( 'Author' ) . id ]
362
+ } , "encode" : true
363
+ } ,
364
+ "category" : { "method" : {
365
+ "name" : "tree_list" ,
366
+ "args" : [ blog . fields . find_by_name ( 'Categories' ) . id ]
367
+ } , "multiple" : ","
368
+ } ,
369
+ "content" : { "field" : blog . fields . find_by_name ( 'Body' ) . id , "encode" : true } ,
370
+ "media:content" : { "media" :
371
+ { "field" : blog . fields . find_by_name ( 'Featured Image' ) . id ,
372
+ "medium" : "image"
373
+ }
374
+ }
378
375
}
379
376
}
380
377
0 commit comments