package target
import "github.com/gohugoio/hugo/target"
Index ¶
- type AliasNode
- type AliasPublisher
- type Filesystem
- func (fs *Filesystem) Publish(path string, r io.Reader) (err error)
- func (fs *Filesystem) Translate(src string) (dest string, err error)
- type HTMLRedirectAlias
- func (h *HTMLRedirectAlias) Publish(path string, permalink string, page interface{}) (err error)
- func (h *HTMLRedirectAlias) Translate(alias string) (aliasPath string, err error)
- type InMemoryTarget
- func (t *InMemoryTarget) Publish(label string, reader io.Reader) (err error)
- func (t *InMemoryTarget) Translate(label string) (dest string, err error)
- type OptionalTranslator
- type Output
- type PagePub
- func (pp *PagePub) Publish(path string, r io.Reader) (err error)
- func (pp *PagePub) Translate(src string) (dest string, err error)
- func (pp *PagePub) TranslateRelative(src string) (dest string, err error)
- type PagePublisher
- type Publisher
- type Translator
Types ¶
type AliasNode ¶
type AliasNode struct { Permalink string Page interface{} }
type AliasPublisher ¶
type AliasPublisher interface { Translator Publish(path string, permalink string, page interface{}) error }
type Filesystem ¶
type Filesystem struct { PublishDir string }
func (*Filesystem) Publish ¶
func (fs *Filesystem) Publish(path string, r io.Reader) (err error)
func (*Filesystem) Translate ¶
func (fs *Filesystem) Translate(src string) (dest string, err error)
type HTMLRedirectAlias ¶
type HTMLRedirectAlias struct { PublishDir string Templates *template.Template AllowRoot bool // for the language redirects }
func (*HTMLRedirectAlias) Publish ¶
func (h *HTMLRedirectAlias) Publish(path string, permalink string, page interface{}) (err error)
func (*HTMLRedirectAlias) Translate ¶
func (h *HTMLRedirectAlias) Translate(alias string) (aliasPath string, err error)
type InMemoryTarget ¶
func (*InMemoryTarget) Publish ¶
func (t *InMemoryTarget) Publish(label string, reader io.Reader) (err error)
func (*InMemoryTarget) Translate ¶
func (t *InMemoryTarget) Translate(label string) (dest string, err error)
type OptionalTranslator ¶
TODO(bep) consider other ways to solve this.
type Output ¶
type Output interface { Publisher Translator }
type PagePub ¶
type PagePub struct { UglyURLs bool DefaultExtension string PublishDir string // LangDir will contain the subdir for the language, i.e. "en", "de" etc. // It will be empty if the site is rendered in root. LangDir string }
func (*PagePub) Publish ¶
func (*PagePub) Translate ¶
func (*PagePub) TranslateRelative ¶
type PagePublisher ¶
type PagePublisher interface { Translator Publish(string, template.HTML) error }
type Publisher ¶
type Translator ¶
Source Files ¶
file.go htmlredirect.go memory.go page.go
- Version
- v0.18.1
- Published
- Dec 29, 2016
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 1 minute ago –
Tools for package owners.