fix: page title

This commit is contained in:
Cory Dransfeldt 2024-10-22 09:25:54 -07:00
parent d2c4c78ff7
commit bc5ab3ad8f
No known key found for this signature in database
2 changed files with 6 additions and 2 deletions

View file

@ -12,8 +12,10 @@
{%- assign pageTitle = 'Music / ' | append: page.title | append: ' / ' | append: globals.site_name -%} {%- assign pageTitle = 'Music / ' | append: page.title | append: ' / ' | append: globals.site_name -%}
{%- when 'books-year' -%} {%- when 'books-year' -%}
{%- assign pageTitle = year.value | append: ' / Books / ' | append: globals.site_name -%} {%- assign pageTitle = year.value | append: ' / Books / ' | append: globals.site_name -%}
{%- when 'page' -%}
{%- assign pageTitle = page.title | append: ' / ' | append: globals.site_name -%}
{%- else -%} {%- else -%}
{%- assign pageTitle = title | append: ' / ' | append: globals.site_name -%} {%- assign pageTitle = globals.site_name -%}
{%- endcase -%} {%- endcase -%}
{%- if page.description -%} {%- if page.description -%}

View file

@ -4,9 +4,11 @@ pagination:
data: pages data: pages
size: 1 size: 1
alias: page alias: page
title: "{{ page.title }}"
description: "{{ page.description }}" description: "{{ page.description }}"
permalink: "{{ page.permalink }}/index.html" permalink: "{{ page.permalink }}/index.html"
image: "{{ page.open_graph_image | prepend: globals.cdn_url | default: globals.avatar }}" image: "{{ page.open_graph_image | prepend: globals.cdn_url | default: globals.avatar }}"
updated: {{ page.updated | default: null }} updated: {{ page.updated | default: null }}
schema: page
--- ---
{% render "partials/blocks/index.liquid", blocks:page.blocks, globals:globals %} {% render "partials/blocks/index.liquid", blocks:page.blocks, globals:globals %}