2016-09-20 14:35:23 +00:00
|
|
|
import template from './index';
|
|
|
|
|
2016-10-27 21:54:38 +00:00
|
|
|
export default function (hostname, name) {
|
2016-09-20 14:35:23 +00:00
|
|
|
return template`
|
2016-10-27 21:54:38 +00:00
|
|
|
export const ${name} = {
|
2016-09-20 14:35:23 +00:00
|
|
|
domain: '${hostname}',
|
2016-10-27 17:44:06 +00:00
|
|
|
|
2016-09-20 14:35:23 +00:00
|
|
|
title: {
|
|
|
|
selectors: [
|
|
|
|
// enter title selectors
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
2016-09-30 16:26:25 +00:00
|
|
|
author: {
|
|
|
|
selectors: [
|
|
|
|
// enter author selectors
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
2016-10-10 22:52:10 +00:00
|
|
|
date_published: {
|
|
|
|
selectors: [
|
|
|
|
// enter selectors
|
|
|
|
],
|
|
|
|
},
|
2016-09-20 14:35:23 +00:00
|
|
|
|
2016-10-10 22:52:10 +00:00
|
|
|
dek: {
|
|
|
|
selectors: [
|
|
|
|
// enter selectors
|
|
|
|
],
|
|
|
|
},
|
2016-09-20 14:35:23 +00:00
|
|
|
|
2016-10-27 17:44:06 +00:00
|
|
|
lead_image_url: {
|
2016-10-10 22:52:10 +00:00
|
|
|
selectors: [
|
|
|
|
// enter selectors
|
|
|
|
],
|
|
|
|
},
|
2016-09-20 14:35:23 +00:00
|
|
|
|
2016-10-27 17:44:06 +00:00
|
|
|
content: {
|
2016-10-10 22:52:10 +00:00
|
|
|
selectors: [
|
2016-10-27 17:44:06 +00:00
|
|
|
// enter content selectors
|
2016-10-10 22:52:10 +00:00
|
|
|
],
|
2016-10-27 17:44:06 +00:00
|
|
|
|
|
|
|
// Is there anything in the content you selected that needs transformed
|
|
|
|
// before it's consumable content? E.g., unusual lazy loaded images
|
|
|
|
transforms: {
|
|
|
|
},
|
|
|
|
|
|
|
|
// Is there anything that is in the result that shouldn't be?
|
|
|
|
// The clean selectors will remove anything that matches from
|
|
|
|
// the result
|
|
|
|
clean: [
|
|
|
|
|
|
|
|
]
|
2016-10-10 22:52:10 +00:00
|
|
|
},
|
2016-09-20 14:35:23 +00:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
}
|