Skip to content

Commit fa284a7

Browse files
authored
Update default.html
1 parent 9b5d808 commit fa284a7

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

_layouts/default.html

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -235,29 +235,18 @@ <h3 class="h5 card-title">Explore More Currency Tools</h3>
235235
updateSeoHeading();
236236
}
237237

238-
/**
239-
* Updates the H1 heading for SEO purposes.
240-
*/
241-
function updateSeoHeading() {
238+
function updateSeoHeading() {
242239
const fromCode = fromSelect.value;
243240
const toCode = toSelect.value;
244241
const fromName = currencyNames[fromCode] || fromCode;
245242
const toName = currencyNames[toCode] || toCode;
246243

247244
const today = new Date();
248-
const formattedDate = today.toLocaleDateString('en-US', {
249-
day: 'numeric',
250-
month: 'long',
251-
year: 'numeric'
252-
});
245+
const formattedDate = today.toLocaleDateString('en-US', { day: 'numeric', month: 'long', year: 'numeric' });
253246

254247
seoHeading.textContent = `${fromName} to ${toName} Exchange Rate - ${formattedDate}`;
255-
document.title = `${fromName} to ${toName} Converter | ${formattedDate} | ${site.name}`;
256248
}
257-
258-
/**
259-
* Performs the conversion using the stored rates.
260-
*/
249+
261250
function performConversion() {
262251
const amount = parseFloat(amountInput.value);
263252
const fromCurrency = fromSelect.value;

0 commit comments

Comments
 (0)