diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-12 17:22:33 +0100 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-12 17:22:33 +0100 |
| commit | e0c5ec43f5c2a105dc3c626d7c4bc74b512662f4 (patch) | |
| tree | 4eabdb4b96e960e83f38b5af3b8407d58beb0220 /src/layouts/Layout.astro | |
| parent | b99397f884e41a1018a217c6eb116ed00f922a4f (diff) | |
Parameterises translation
Diffstat (limited to 'src/layouts/Layout.astro')
| -rw-r--r-- | src/layouts/Layout.astro | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 360acfb..ca567f6 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -17,13 +17,13 @@ const t = translate(locale); <html lang="sco"> <head> <meta charset="UTF-8" /> - <meta name="description" content={ t(site, 'description') } /> + <meta name="description" content={t(site, { key: 'description' })} /> <meta name="viewport" content="width=device-width" /> <link rel="icon" href="/favicon.ico" /> <link rel="stylesheet" href="/normalize.css" /> <link rel="stylesheet" href="/main.css" /> <meta name="generator" content={Astro.generator} /> - <title>{ title } | { t(site, 'title') }</title> + <title>{title} | {t(site, { key: 'title' })}</title> </head> <body> <slot /> |
