Documentation ¶
Index ¶
- Constants
- Variables
- type Content
- func (c Content) Categories() Set
- func (c Content) CheckInPagesFolder(filename string) (bool, error)
- func (c Content) CheckInPostsFolder(filename string) (bool, error)
- func (c Content) CreatePageMetadata(filename string) (int64, error)
- func (c Content) CreatePostMetadata(filename string) (int64, error)
- func (c Content) GetPageFile(filename string) Page
- func (c Content) GetPageMetadata(filename string) (Page, error)
- func (c Content) GetPages() []Page
- func (c Content) GetPostFile(filename string) Post
- func (c Content) GetPostMetadata(filename string) (Post, error)
- func (c Content) GetPosts() []Post
- func (c Content) License() string
- func (c Content) Output() (output string)
- func (c Content) PostsPerPage() int
- func (c Content) SetLicense(license string) error
- func (c Content) SetOutput(output string) error
- func (c Content) SetPostsPerPage(ppp int) error
- func (c Content) SetTitle(title string) error
- func (c Content) Title() string
- type Element
- type File
- type Filer
- type Page
- type Post
- type Set
Constants ¶
View Source
const (
METADATA_FILE = ".metadata.db"
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Content ¶
type Content struct {
// contains filtered or unexported fields
}
func OpenContent ¶
func (Content) Categories ¶
func (Content) CheckInPagesFolder ¶
func (Content) CheckInPostsFolder ¶
func (Content) CreatePageMetadata ¶
func (Content) CreatePostMetadata ¶
func (Content) GetPageFile ¶
func (Content) GetPostFile ¶
func (Content) PostsPerPage ¶
PostsPerPage returns the number of posts por pages stored in metadata
func (Content) SetLicense ¶
SetLicense sets the general license of the website contents
func (Content) SetPostsPerPage ¶
SetPostsPerPage changes the posts for page when building a site
type Element ¶
type Element struct {
// contains filtered or unexported fields
}
Element represents a member, or row, of the name which this belongs.
type File ¶
type File struct {
// contains filtered or unexported fields
}
File is the base struct for Post and Page
type Page ¶
type Page struct { File // contains filtered or unexported fields }
func (*Page) SetReference ¶
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
Set represents a table in database
func (Set) AddElement ¶
AddElement adds a new row, an element like a category or tag name
func (Set) DeleteUnusedElements ¶
func (s Set) DeleteUnusedElements()
DeleteUnusedElements removes those elements without any post related
Click to show internal directories.
Click to hide internal directories.