diff options
| author | Leonardo Bishop <me@leonardobishop.net> | 2025-07-14 01:24:40 +0100 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.net> | 2025-07-14 01:24:40 +0100 |
| commit | 08a3fb8a2b0281c3c329b33215ec7f8866add606 (patch) | |
| tree | ff8a5413449ea198bc063bf0099fc025ea49c82b /web/command/html/home.go | |
| parent | 684787bcb72aece2aa914597a3bc8788432e66f7 (diff) | |
Add authentication and ability to change host
Diffstat (limited to 'web/command/html/home.go')
| -rw-r--r-- | web/command/html/home.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/command/html/home.go b/web/command/html/home.go index 490b2b8..b9d585c 100644 --- a/web/command/html/home.go +++ b/web/command/html/home.go @@ -38,7 +38,8 @@ func HomePage(siteIndex *index.SiteIndex) Node { Span( Class("name"), Span(Text(site.Name)), - Span(Text(fmt.Sprintf("on %s", site.SiteConfig.Host))), + If(site.SiteConfig.Host == "", Span(Text("no host"))), + If(site.SiteConfig.Host != "", Span(Text(fmt.Sprintf("on %s", site.SiteConfig.Host)))), ), Span( Class("status"), |
