1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-22 06:39:43 +02:00

switch between docs and wiki layout

Closes #60
This commit is contained in:
Harvey Kandola 2016-11-20 19:55:52 -08:00
parent 0819e04c03
commit 7e14651998
18 changed files with 704 additions and 620 deletions

View file

@ -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.