fix: title bug
This commit is contained in:
parent
19e22c4c32
commit
4d1f9bdf85
2 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "10.3.3",
|
"version": "10.3.4",
|
||||||
"description": "The source for my personal site. Built using 11ty.",
|
"description": "The source for my personal site. Built using 11ty.",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -2,8 +2,10 @@
|
||||||
{%- capture pageTitle -%}
|
{%- capture pageTitle -%}
|
||||||
{% if page.url | isPost %}
|
{% if page.url | isPost %}
|
||||||
{{ title }}
|
{{ title }}
|
||||||
|
{% elsif title %}
|
||||||
|
{{ title }} • {{ meta.siteName }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ title }} • {{meta.siteName}}
|
{{ meta.siteName }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{%- endcapture -%}
|
{%- endcapture -%}
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
|
|
Reference in a new issue