Added custom branding env-vars

pull/1621/head
Sebastian Weise 2022-10-30 15:55:33 +01:00
parent ab4a60f814
commit 29fa4fe3bd
3 changed files with 10 additions and 3 deletions

View File

@ -77,7 +77,7 @@ export default function LoginForm() {
<Form> <Form>
<div className={styles.header}> <div className={styles.header}>
<Icon icon={<Logo />} size="xlarge" className={styles.icon} /> <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> </div>
<FormRow> <FormRow>
<label htmlFor="username"> <label htmlFor="username">

View File

@ -27,7 +27,11 @@ export default function Header() {
<header className={classNames(styles.header, 'row')}> <header className={classNames(styles.header, 'row')}>
<div className={styles.title}> <div className={styles.title}>
<Icon icon={<Logo />} size="large" className={styles.logo} /> <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> </div>
<HamburgerButton /> <HamburgerButton />
{user && ( {user && (

View File

@ -10,7 +10,10 @@ export default function Layout({ title, children, header = true, footer = true }
return ( return (
<> <>
<Head> <Head>
<title>umami{title && ` - ${title}`}</title> <title>
{process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'umami'}
{title && ` - ${title}`}
</title>
</Head> </Head>
{header && <Header />} {header && <Header />}