From bc5ab3ad8f5674e7fe2e51798650c7fe235de3a2 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Tue, 22 Oct 2024 09:25:54 -0700 Subject: [PATCH] fix: page title --- src/includes/base.liquid | 4 +++- src/pages/dynamic/page.html | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/includes/base.liquid b/src/includes/base.liquid index 5c3160a8..a519796f 100644 --- a/src/includes/base.liquid +++ b/src/includes/base.liquid @@ -12,8 +12,10 @@ {%- assign pageTitle = 'Music / ' | append: page.title | append: ' / ' | append: globals.site_name -%} {%- when 'books-year' -%} {%- assign pageTitle = year.value | append: ' / Books / ' | append: globals.site_name -%} + {%- when 'page' -%} + {%- assign pageTitle = page.title | append: ' / ' | append: globals.site_name -%} {%- else -%} - {%- assign pageTitle = title | append: ' / ' | append: globals.site_name -%} + {%- assign pageTitle = globals.site_name -%} {%- endcase -%} {%- if page.description -%} diff --git a/src/pages/dynamic/page.html b/src/pages/dynamic/page.html index 2c31f790..b82dcdea 100644 --- a/src/pages/dynamic/page.html +++ b/src/pages/dynamic/page.html @@ -4,9 +4,11 @@ pagination: data: pages size: 1 alias: page +title: "{{ page.title }}" description: "{{ page.description }}" permalink: "{{ page.permalink }}/index.html" image: "{{ page.open_graph_image | prepend: globals.cdn_url | default: globals.avatar }}" updated: {{ page.updated | default: null }} +schema: page --- -{% render "partials/blocks/index.liquid", blocks:page.blocks, globals:globals %} \ No newline at end of file +{% render "partials/blocks/index.liquid", blocks:page.blocks, globals:globals %}