|
@@ -21,8 +21,12 @@ SET ":filter_options" = (
|
|
|
SELECT 'card' AS component
|
|
|
, 1 AS columns
|
|
|
WHERE COALESCE($hash, '') <> '';
|
|
|
-SELECT COALESCE(type||' ','') || COALESCE(store||' ', '') || COALESCE(expiry, created) AS title
|
|
|
-, COALESCE(content->>'content'||' ', '') || COALESCE(content->>'type', '') AS description
|
|
|
+SELECT COALESCE($hash, '') || COALESCE($type||' ','') || COALESCE($store||' ', '') || COALESCE($expiry, $created, '') AS title
|
|
|
+, '
|
|
|
+| Type | Content |
|
|
|
+|:
|
|
|
+| ' || COALESCE($content->>'format', '') || ' | ' || COALESCE($content->>'content', '') || ' |
|
|
|
+' AS description_md
|
|
|
, $preview AS top_image
|
|
|
, $tabler_color AS color
|
|
|
WHERE COALESCE($hash, '') <> ''
|