Added custom branding env-vars
parent
ab4a60f814
commit
29fa4fe3bd
|
@ -77,7 +77,7 @@ export default function LoginForm() {
|
|||
<Form>
|
||||
<div className={styles.header}>
|
||||
<Icon icon={<Logo />} size="xlarge" className={styles.icon} />
|
||||
<h1 className="center">umami</h1>
|
||||
<h1 className="center">{process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'umami'}</h1>
|
||||
</div>
|
||||
<FormRow>
|
||||
<label htmlFor="username">
|
||||
|
|
|
@ -27,7 +27,11 @@ export default function Header() {
|
|||
<header className={classNames(styles.header, 'row')}>
|
||||
<div className={styles.title}>
|
||||
<Icon icon={<Logo />} size="large" className={styles.logo} />
|
||||
<Link href={isSharePage ? HOMEPAGE_URL : '/'}>umami</Link>
|
||||
<Link
|
||||
href={isSharePage ? process.env.NEXT_PUBLIC_CUSTOM_HOMEPAGE_URL || HOMEPAGE_URL : '/'}
|
||||
>
|
||||
{process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'umami'}
|
||||
</Link>
|
||||
</div>
|
||||
<HamburgerButton />
|
||||
{user && (
|
||||
|
|
|
@ -10,7 +10,10 @@ export default function Layout({ title, children, header = true, footer = true }
|
|||
return (
|
||||
<>
|
||||
<Head>
|
||||
<title>umami{title && ` - ${title}`}</title>
|
||||
<title>
|
||||
{process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'umami'}
|
||||
{title && ` - ${title}`}
|
||||
</title>
|
||||
</Head>
|
||||
|
||||
{header && <Header />}
|
||||
|
|
Loading…
Reference in New Issue