diff --git a/src/includes/base.liquid b/src/includes/base.liquid index 60fa5594..223a5ee2 100644 --- a/src/includes/base.liquid +++ b/src/includes/base.liquid @@ -97,8 +97,8 @@ - - + + @@ -127,7 +127,7 @@ "@id": "{{ globals.url }}#website", "url": "{{ globals.url }}", "name": "{{ pageTitle }}", - "description": "{{ pageDescription }}", + "description": "{{ pageDescription | escape }}", "inLanguage": "{{ globals.locale }}" }, {%- if schema == 'blog' -%} @@ -137,7 +137,7 @@ "isPartOf": { "@id": "{{ globals.url }}#website" }, "@id": "{{ fullUrl }}", "headline": "{{ pageTitle }}", - "description": "{{ pageDescription }}", + "description": "{{ pageDescription | escape }}", "image": "{{ image | default: globals.meta_data.opengraph_default }}", "inLanguage": "{{ globals.locale }}", "publisher": { "@type": "{{ globals.site_type }}", "name": "{{ globals.author }}", "url": "{{ globals.url }}" }, diff --git a/views/feeds/search.psql b/views/feeds/search.psql index 753c16c6..9eaa0590 100644 --- a/views/feeds/search.psql +++ b/views/feeds/search.psql @@ -65,6 +65,20 @@ WITH search_data AS ( g.name AS genre_name, CONCAT('https://coryd.dev', g.url) AS genre_url FROM optimized_genres g + + UNION ALL + + SELECT + CASE + WHEN s.review IS NOT NULL THEN CONCAT('📺 ', s.title, ' (', s.year, ') - ', s.review) + ELSE CONCAT('📺 ', s.title, ' (', s.year, ')') + END AS title, + CONCAT('https://coryd.dev', s.url) AS url, + s.tags, + NULL AS genre_name, + NULL AS genre_url + FROM optimized_shows s + WHERE s.last_watched_at IS NOT NULL ), search_data_with_id AS (