content

package
v0.0.0-...-74da84b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2017 License: BSD-3-Clause, BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	item.Item

	Title    string   `json:"title"`
	Photo    string   `json:"photo"`
	Body     string   `json:"body"`
	Category []string `json:"category"`
	Author   string   `json:"author"`
}

func (*Article) IndexContent

func (a *Article) IndexContent() bool

func (*Article) MarshalEditor

func (a *Article) MarshalEditor() ([]byte, error)

MarshalEditor writes a buffer of html to edit a Article within the CMS and implements editor.Editable

func (*Article) Push

func (a *Article) Push() []string

func (*Article) String

func (a *Article) String() string

type Author

type Author struct {
	item.Item

	Name     string   `json:"name"`
	Bio      string   `json:"bio"`
	Photo    string   `json:"photo"`
	Subjects []string `json:"subjects"`
	Email    string   `json:"email"`
}

func (*Author) IndexContent

func (a *Author) IndexContent() bool

func (*Author) MarshalEditor

func (a *Author) MarshalEditor() ([]byte, error)

MarshalEditor writes a buffer of html to edit a Author within the CMS and implements editor.Editable

func (*Author) Omit

func (a *Author) Omit() []string

func (*Author) Push

func (a *Author) Push() []string

func (*Author) String

func (a *Author) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL