From 73391d7b8d847f3a8662be7c632658e7299acd37 Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 13 Apr 2023 17:09:31 +0200 Subject: Fix empty title regression If no title is detected, a default text should be inserted instead. This avoids not clickable links on the index page. --- markup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markup.go b/markup.go index fd1b277..b86d685 100644 --- a/markup.go +++ b/markup.go @@ -34,7 +34,7 @@ func (m Markup) title() string { return strings.TrimPrefix(line, "# ") } } - return "" + return "No title dtected" } func (m Markup) html() string { -- cgit v1.2.3-70-g09d2