summaryrefslogtreecommitdiff
path: root/markup.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-04-13 17:09:31 +0200
committerxengineering <me@xengineering.eu>2023-04-13 17:59:37 +0200
commit73391d7b8d847f3a8662be7c632658e7299acd37 (patch)
tree5151aed143aed24fe2c67adabea794e507bdc5e2 /markup.go
parent0c5e4afa7cc608067e3bf187977b087df322f319 (diff)
downloadceres-73391d7b8d847f3a8662be7c632658e7299acd37.tar
ceres-73391d7b8d847f3a8662be7c632658e7299acd37.tar.zst
ceres-73391d7b8d847f3a8662be7c632658e7299acd37.zip
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.
Diffstat (limited to 'markup.go')
-rw-r--r--markup.go2
1 files changed, 1 insertions, 1 deletions
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 {