mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
only display type if gsearch backend returns it
This commit is contained in:
parent
d6f51a5c2b
commit
c91be25dae
2 changed files with 9 additions and 4 deletions
|
@ -87,15 +87,18 @@ function createSearchResultPage(context, result, doodle){
|
|||
thumbnail: {
|
||||
url: result.card.images.thumbnail
|
||||
},
|
||||
description: `-# ${result.card.type}`,
|
||||
description: ``,
|
||||
footer: renderFooter(context, doodle)
|
||||
})
|
||||
|
||||
|
||||
if(!result.card.images.preview && result.card.link == ""){
|
||||
delete res.author
|
||||
res.description = `### ${result.card.title}\n-# ${result.card.type}`
|
||||
res.description = `### ${result.card.title}\n`
|
||||
}
|
||||
|
||||
if(result.card.type) res.description += `-# ${result.card.type}`
|
||||
|
||||
if(result.card.color !== "") res.color = parseInt(result.card.color.substring(1,10), 16)
|
||||
|
||||
if(result.card.description !== ""){
|
||||
|
|
|
@ -88,15 +88,17 @@ function createSearchResultPage(context, result, doodle){
|
|||
thumbnail: {
|
||||
url: result.card.images.thumbnail
|
||||
},
|
||||
description: `-# ${result.card.type}`,
|
||||
description: '',
|
||||
footer: renderFooter(context, doodle)
|
||||
})
|
||||
|
||||
if(!result.card.images.preview && result.card.link == ""){
|
||||
delete res.author
|
||||
res.description = `### ${result.card.title}\n-# ${result.card.type}`
|
||||
res.description = `### ${result.card.title}\n`
|
||||
}
|
||||
|
||||
if(result.card.type) res.description += `-# ${result.card.type}`
|
||||
|
||||
if(result.card.color !== "") res.color = parseInt(result.card.color.substring(1,10), 16)
|
||||
|
||||
if(result.card.description !== ""){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue