From d122d841e8b7dd7f8942b6f2fa84220f95f2cae4 Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Wed, 10 Sep 2025 00:46:42 +0100 Subject: Add optional CSS to html --- pkg/html/service.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'pkg/html') diff --git a/pkg/html/service.go b/pkg/html/service.go index cba3a6c..8a7a163 100644 --- a/pkg/html/service.go +++ b/pkg/html/service.go @@ -34,16 +34,19 @@ func (s *service) GenerateHtml(entries []sqlc.GetEntriesRow) (string, error) { currentDate = date str += "" + str += "" if entry.KindName == "starred" { str += "" } - str += "" + entry.KindEmoji + " " + entry.Title + "" + str += entry.KindEmoji + " " + entry.Title if entry.KindName == "starred" { str += "" } - str += " - " + entry.Description + "" - str += " - " + date.Format(time.DateOnly) + "" - str += "
" + str += "" + + str += "" + entry.Description + "" + str += "on " + date.Format("02 Jan 2006") + "" + str += "" } return str, nil -- cgit v1.2.3-70-g09d2