Skip to content

Commit

Permalink
Utilize ternary for seoTitle
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinsina committed Mar 1, 2024
1 parent 9fdd9f4 commit 699499f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/layouts/default.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
const { title, description } = Astro.props;
const seoTitle = `Stat 'n' Track: ${title}` || "Stat 'n' Track";
const seoTitle = title ? `Stat 'n' Track: ${title}` : "Stat 'n' Track";
const seoDescription =
description || "An iRacing planner and statistics analyzer";
---
Expand Down

0 comments on commit 699499f

Please sign in to comment.