2018-02-10 23:07:10 +00:00
|
|
|
package types
|
2017-11-24 20:53:13 +00:00
|
|
|
|
|
|
|
// PostPrivacy values.
|
|
|
|
type PostPrivacy string
|
|
|
|
|
|
|
|
// ContentType values
|
|
|
|
type ContentType string
|
|
|
|
|
|
|
|
// Post privacy constants.
|
|
|
|
const (
|
|
|
|
PUBLIC PostPrivacy = "public"
|
|
|
|
PRIVATE = "private"
|
|
|
|
UNLISTED = "unlisted"
|
|
|
|
DRAFT = "draft"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Content types for blog posts.
|
|
|
|
const (
|
|
|
|
MARKDOWN ContentType = "markdown"
|
|
|
|
HTML ContentType = "html"
|
|
|
|
)
|
2018-02-10 19:14:42 +00:00
|
|
|
|
|
|
|
// Common form actions.
|
|
|
|
const (
|
|
|
|
ActionSave = "save"
|
|
|
|
ActionDelete = "delete"
|
|
|
|
ActionPreview = "preview"
|
|
|
|
ActionPost = "post"
|
|
|
|
)
|