From 08a3fb8a2b0281c3c329b33215ec7f8866add606 Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Mon, 14 Jul 2025 01:24:40 +0100 Subject: Add authentication and ability to change host --- web/command/html/home.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'web/command/html/home.go') 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"), -- cgit v1.2.3-70-g09d2