aboutsummaryrefslogtreecommitdiff
path: root/backend/logs.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-10-05 22:50:27 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-10-05 23:18:17 +0200
commit4e5ab025f03004d9cc5ecce53371683766495ac6 (patch)
treeb24b1188226d09db4c5cacb5514a5d9f90cd58f8 /backend/logs.go
parent33cfc1d4e8f3b5b55202588e5b5148a48b43d427 (diff)
feat(backend): support file properties in generic root
Diffstat (limited to 'backend/logs.go')
-rw-r--r--backend/logs.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/backend/logs.go b/backend/logs.go
index 46e47c5..2b009c1 100644
--- a/backend/logs.go
+++ b/backend/logs.go
@@ -140,7 +140,6 @@ func handleLog(w http.ResponseWriter, r *http.Request) {
func parseLog(d *logData, path, slug string) bool {
d.Article = true
- d.EntryInfo.Title = slug
d.title = slug
d.Slug = slug
b, err := os.ReadFile(path + ".md")
@@ -151,12 +150,10 @@ func parseLog(d *logData, path, slug string) bool {
panic(err)
}
var ok bool
- d.Content, ok = parse(b, &d.EntryInfo)
+ d.Content, ok = parse(b, &d.EntryInfo, d.data)
if !ok {
return false
}
- d.title = d.EntryInfo.Title
- d.Image = d.Img.Src
logs[path] = d
return true
}