fix(route): 18comic add cover image (#14858)
This commit is contained in:
parent
0f4672570f
commit
9399fb3266
|
|
@ -1,3 +1,6 @@
|
|||
{{ if cover }}
|
||||
<img src="{{ cover }}">
|
||||
{{ /if }}
|
||||
<p>{{ introduction }}</p>
|
||||
{{ each images image }}
|
||||
<img src="{{ image }}">
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@ const ProcessItems = async (ctx, currentUrl, rootUrl) => {
|
|||
const content = load(detailResponse.data);
|
||||
|
||||
item.pubDate = parseDate(content('div[itemprop="datePublished"]').first().attr('content'));
|
||||
item.updated = parseDate(content('div[itemprop="datePublished"]').last().attr('content'));
|
||||
item.category = content('span[data-type="tags"]')
|
||||
.first()
|
||||
.find('a')
|
||||
|
|
@ -65,6 +66,7 @@ const ProcessItems = async (ctx, currentUrl, rootUrl) => {
|
|||
images: content('.img_zoom_img img')
|
||||
.toArray()
|
||||
.map((image) => content(image).attr('data-original')),
|
||||
cover: content('.thumb-overlay img').first().attr('src'),
|
||||
});
|
||||
|
||||
return item;
|
||||
|
|
|
|||
Loading…
Reference in New Issue