fix: page title
This commit is contained in:
parent
d2c4c78ff7
commit
bc5ab3ad8f
2 changed files with 6 additions and 2 deletions
|
@ -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 -%}
|
||||
|
|
|
@ -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 %}
|
||||
{% render "partials/blocks/index.liquid", blocks:page.blocks, globals:globals %}
|
||||
|
|
Reference in a new issue