chore: escape description; add tv to search index
This commit is contained in:
parent
a90e44ccc9
commit
67de0669db
2 changed files with 18 additions and 4 deletions
|
@ -97,8 +97,8 @@
|
|||
<link rel="stylesheet" href="/assets/styles/index.css?v={% appVersion %}" type="text/css" />
|
||||
<link rel="canonical" href="{{ fullUrl }}" />
|
||||
<meta property="og:title" content="{{ pageTitle }}" />
|
||||
<meta name="description" content="{{ pageDescription }}" />
|
||||
<meta property="og:description" content="{{ pageDescription }}" />
|
||||
<meta name="description" content="{{ pageDescription | escape }}" />
|
||||
<meta property="og:description" content="{{ pageDescription | escape }}" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="{{ fullUrl }}" />
|
||||
<meta property="og:image" content="{{ ogImage }}?class=w800" />
|
||||
|
@ -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 }}" },
|
||||
|
|
|
@ -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 (
|
||||
|
|
Reference in a new issue