This commit is contained in:
2025-07-20 16:01:09 +02:00
parent 63217506dd
commit 62932976dd
2 changed files with 10 additions and 1 deletions

View File

@@ -66,7 +66,7 @@ pub fn play(args_ PlayArgs) ! {
mut position := 0
mut path:=""
for action in page_actions {
println(action)
// println(action)
mut p := action.params
sitename := p.get_default('sitename',args.sitename)!
pathnew := p.get_default('path', "")!

View File

@@ -49,6 +49,15 @@ pub fn (mut site Site) page_add(args_ Page) ! {
args.description = page_name
}
}
if args.title.len==0 {
descnew:=markdowntools.extract_title(page_content)
if descnew!=""{
args.title = descnew
}else{
args.title = page_name
}
}
content<< "title: '${args.title}'"
if args.description.len>0 {