Also set title via content
parent
93433de827
commit
6b41fcfb09
3
entry.go
3
entry.go
|
@ -107,6 +107,9 @@ func computeExtraSettings(entry *Entry) error {
|
|||
if strings.HasPrefix(text, "section: ") {
|
||||
// Section
|
||||
entry.section = strings.TrimPrefix(text, "section: ")
|
||||
} else if strings.HasPrefix(text, "title: ") {
|
||||
// Title
|
||||
entry.title = strings.TrimPrefix(text, "title: ")
|
||||
} else if strings.HasPrefix(text, "slug: ") {
|
||||
// Slug
|
||||
entry.slug = strings.TrimPrefix(text, "slug: ")
|
||||
|
|
Loading…
Reference in New Issue