fix: title bug

This commit is contained in:
Cory Dransfeldt 2024-04-14 19:03:59 -07:00
parent 19e22c4c32
commit 4d1f9bdf85
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View file

@ -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": {

View file

@ -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>