Documentation ¶
Overview ¶
Package tags builds tag clouds from file metadata. This makes it easy to create lists of all files tagged with a specific tag, as well as to see all tags globally used on a site.
Index ¶
- type TagInfo
- type TagState
- type Tags
- func (self *Tags) BaseDir(dir string) *Tags
- func (self *Tags) Finalize(context *goldsmith.Context) error
- func (self *Tags) IndexMeta(meta map[string]interface{}) *Tags
- func (plugin *Tags) IndexName(name string) *Tags
- func (*Tags) Initialize(context *goldsmith.Context) error
- func (*Tags) Name() string
- func (self *Tags) Process(context *goldsmith.Context, inputFile *goldsmith.File) error
- func (self *Tags) StateKey(key string) *Tags
- func (self *Tags) TagsKey(key string) *Tags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TagInfo ¶
type TagInfo struct { TaggedFiles filesByPath IndexFile *goldsmith.File SafeName string RawName string }
TagInfo contains site-wide information about a particular tag.
type TagState ¶
type TagState struct { CurrentTag *TagInfo CurrentTags tagInfoByName TagsByName *tagInfoByName TagsByCount *tagInfoByCount }
TagState contains site-wide information about tags used on a site.
type Tags ¶
type Tags struct {
// contains filtered or unexported fields
}
Tags chainable context.
func (*Tags) BaseDir ¶
BaseDir sets the base directory used to generate tag list files (default: "tags").
func (*Tags) IndexMeta ¶
IndexMeta sets the metadata which will be assigned to generated tag list files (default: {}).
func (*Tags) IndexName ¶
IndexName sets the filename which will be used to create tag list files (default: "index.html").
Click to show internal directories.
Click to hide internal directories.