mirror of
https://github.com/documize/community.git
synced 2025-07-22 06:39:43 +02:00
parent
0819e04c03
commit
7e14651998
18 changed files with 704 additions and 620 deletions
|
@ -152,6 +152,7 @@ type Document struct {
|
|||
Slug string `json:"-"`
|
||||
Tags string `json:"tags"`
|
||||
Template bool `json:"template"`
|
||||
Layout string `json:"layout"`
|
||||
}
|
||||
|
||||
// SetDefaults ensures on blanks and cleans.
|
||||
|
@ -161,6 +162,8 @@ func (d *Document) SetDefaults() {
|
|||
if len(d.Title) == 0 {
|
||||
d.Title = "Document"
|
||||
}
|
||||
|
||||
d.Layout = "doc"
|
||||
}
|
||||
|
||||
// Attachment represents an attachment to a document.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue