Fix server rendered title tag. Closes #2251

This commit is contained in:
Gabe Kangas 2022-10-23 23:08:46 -07:00
parent c6a67a1c66
commit a0093fb0c9
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA
2 changed files with 2 additions and 4 deletions

View File

@ -18,7 +18,7 @@ export const TitleNotifier: FC = () => {
const onBlur = () => {
backgrounded = true;
defaultTitle = document.title;
defaultTitle = window.document.title;
};
const onFocus = () => {

View File

@ -67,9 +67,7 @@ export const Main: FC = () => {
<meta name="msapplication-TileImage" content="/img/favicon/ms-icon-144x144.png" />
<meta name="theme-color" content="#ffffff" />
{!isProduction && <title>{name}</title>}
{isProduction && <title>{'{{.Name}}'}</title>}
{name ? <title>{name}</title> : <title>{`{{.Name}}`}</title>}
<style>{customStyles}</style>
<base target="_blank" />
</Head>