Fix 3-col calculator labelling and add lint

This commit is contained in:
Codex Agent
2026-03-08 03:20:08 +00:00
parent c7dda1f142
commit c68ad9704e
4 changed files with 56 additions and 7 deletions

View File

@@ -11,7 +11,9 @@
$: calc = data.calculator;
$: related = data.related;
$: pageTitle = `${calc.name}${SITE_NAME}`;
$: pageDescription = `Convert ${calc.labels.in1} to ${calc.labels.in2} instantly with our free online calculator. Accurate bidirectional conversion with the exact formula shown.`;
$: pageDescription = ['3col', '3col-mul'].includes(calc.type)
? `Compute ${calc.labels.in3 ?? 'the derived value'} using ${calc.labels.in1} and ${calc.labels.in2}. Enter any two fields to solve the third.`
: `Convert ${calc.labels.in1} to ${calc.labels.in2} instantly with our free online calculator. Accurate two-way conversion with the exact formula shown.`;
$: seo = buildSeoMeta({
title: pageTitle,
description: pageDescription,