chore: drop build steps, deps + fix meta for cms-generated pages
This commit is contained in:
parent
372d80f2fe
commit
bfbd5bf767
7 changed files with 39 additions and 298 deletions
|
@ -98,7 +98,6 @@ export default async function () {
|
|||
fetchAllPages(),
|
||||
fetchAllBlocks()
|
||||
])
|
||||
|
||||
return await processPages(pages, blocksByPageId)
|
||||
} catch (error) {
|
||||
console.error('Error fetching and processing pages:', error)
|
||||
|
|
|
@ -39,6 +39,8 @@
|
|||
{%- assign pageDescription = show.review | markdown | strip_html | default: show.description | truncate: 300 -%}
|
||||
{%- elsif genre.description -%}
|
||||
{%- assign pageDescription = genre.description | markdown | strip_html | truncate: 300 -%}
|
||||
{%- elsif page.description -%}
|
||||
{%- assign pageDescription = page.description -%}
|
||||
{%- elsif description -%}
|
||||
{%- assign pageDescription = description -%}
|
||||
{%- endif -%}
|
||||
|
@ -84,8 +86,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 | escape | strip }}" />
|
||||
<meta property="og:description" content="{{ pageDescription | escape | strip }}" />
|
||||
<meta name="description" content="{{ pageDescription }}" />
|
||||
<meta property="og:description" content="{{ pageDescription }}" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="{{ fullUrl }}" />
|
||||
<meta property="og:image" content="{{ ogImage }}?class=w800" />
|
||||
|
|
|
@ -4,7 +4,7 @@ pagination:
|
|||
data: pages
|
||||
size: 1
|
||||
alias: page
|
||||
description: "{{ page.description | default: globals.site_description }}"
|
||||
description: "{{ page.description }}"
|
||||
permalink: "{{ page.permalink }}/index.html"
|
||||
image: "{{ page.open_graph_image | prepend: 'https://cdn.coryd.dev/' | default: globals.meta_data.opengraph_default }}"
|
||||
updated: {{ page.updated | default: null }}
|
||||
|
|
Reference in a new issue