Documentation ¶
Index ¶
- func GetNamespace(contentType, status string) string
- func Slug(i content.Identifiable) (string, error)
- type Content
- func (c *Content) AllContentTypeNames() []string
- func (c *Content) AllContentTypes() map[string]content.Creator
- func (c *Content) BuildTarget(contentType, id, status string) (string, error)
- func (c *Content) DeleteContent(contentType, id, status string) error
- func (c *Content) GetContent(contentType, id, status string) ([]byte, error)
- func (c *Content) GetContentCreator(name string) (content.Creator, bool)
- func (c *Content) GetContents(ids []content.Identifier) ([][]byte, error)
- func (c *Content) LoadHugoProject() error
- func (c *Content) Marshal(content any) ([]byte, error)
- func (c *Content) NewContent(contentType string, data url.Values) (string, error)
- func (c *Content) NormalizeString(s string) (string, error)
- func (c *Content) SortContent(contentType string) error
- func (c *Content) Unmarshal(data []byte, content any) error
- func (c *Content) UpdateContent(contentType string, data url.Values) error
- type Hugo
- type Search
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNamespace ¶
Types ¶
type Content ¶
type Content struct { Types map[string]content.Creator Repo repository.Repository *Search *Hugo Log loggers.Logger }
func (*Content) AllContentTypeNames ¶
func (*Content) BuildTarget ¶
func (*Content) DeleteContent ¶
func (*Content) GetContent ¶
func (*Content) GetContentCreator ¶
func (*Content) GetContents ¶
func (c *Content) GetContents(ids []content.Identifier) ([][]byte, error)
func (*Content) LoadHugoProject ¶
func (*Content) NewContent ¶
func (*Content) SortContent ¶
type Hugo ¶
type Hugo struct { Services content.Services Fs afero.Fs Log loggers.Logger // contains filtered or unexported fields }
func (*Hugo) LoadProject ¶
type Search ¶
type Search struct { ContentTypes map[string]content.Creator Repo repository.Repository Log loggers.Logger IndicesMap map[string]map[string]bleve.Index }
func (*Search) DeleteIndex ¶
DeleteIndex removes data from a content type's search index at the given identifier
Click to show internal directories.
Click to hide internal directories.