fix: cms generated page titles
This commit is contained in:
parent
bfbd5bf767
commit
1bf0e7c3bb
3 changed files with 5 additions and 3 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "21.4.0",
|
"version": "21.4.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "21.4.0",
|
"version": "21.4.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@cdransf/api-text": "^1.4.0",
|
"@cdransf/api-text": "^1.4.0",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "21.4.0",
|
"version": "21.4.1",
|
||||||
"description": "The source for my personal site. Built using 11ty (and other tools).",
|
"description": "The source for my personal site. Built using 11ty (and other tools).",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -24,6 +24,8 @@
|
||||||
{%- assign pageTitle = pageTitle | append: ' / ' | append: globals.site_name -%}
|
{%- assign pageTitle = pageTitle | append: ' / ' | append: globals.site_name -%}
|
||||||
{%- elsif show.title -%}
|
{%- elsif show.title -%}
|
||||||
{%- assign pageTitle = 'Shows / ' | append: show.title | append: ' / ' | append: globals.site_name -%}
|
{%- assign pageTitle = 'Shows / ' | append: show.title | append: ' / ' | append: globals.site_name -%}
|
||||||
|
{%- elsif page.description -%}
|
||||||
|
{%- assign pageTitle = page.title | append: ' / ' | append: globals.site_name -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- assign pageDescription = globals.site_description -%}
|
{%- assign pageDescription = globals.site_description -%}
|
||||||
|
|
Reference in a new issue