Added custom branding env-vars
parent
ab4a60f814
commit
29fa4fe3bd
|
@ -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">
|
||||||
|
|
|
@ -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 && (
|
||||||
|
|
|
@ -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 />}
|
||||||
|
|
Loading…
Reference in New Issue