hugo: github.com/gohugoio/hugo/resources/postpub Index | Files

package postpub

import "github.com/gohugoio/hugo/resources/postpub"

Index

Package Files

fields.go postpub.go

Constants

const (
    PostProcessPrefix = "__h_pp_l1"
    PostProcessSuffix = "__e"
)
const (
    FieldNotSupported = "__field_not_supported"
)

type PostPublishResource Uses

type PostPublishResource struct {
    // contains filtered or unexported fields
}

postPublishResource holds a Resource to be transformed post publishing.

func (*PostPublishResource) Content Uses

func (r *PostPublishResource) Content() (interface{}, error)

func (*PostPublishResource) Data Uses

func (r *PostPublishResource) Data() interface{}

func (*PostPublishResource) GetFieldString Uses

func (r *PostPublishResource) GetFieldString(pattern string) (string, bool)

func (*PostPublishResource) MediaType Uses

func (r *PostPublishResource) MediaType() map[string]interface{}

func (*PostPublishResource) Name Uses

func (r *PostPublishResource) Name() string

func (*PostPublishResource) Origin Uses

func (r *PostPublishResource) Origin() resource.Resource

func (*PostPublishResource) Params Uses

func (r *PostPublishResource) Params() maps.Params
func (r *PostPublishResource) Permalink() string
func (r *PostPublishResource) RelPermalink() string

func (*PostPublishResource) ResourceType Uses

func (r *PostPublishResource) ResourceType() string

func (*PostPublishResource) Title Uses

func (r *PostPublishResource) Title() string

type PostPublishedResource Uses

type PostPublishedResource interface {
    resource.ResourceTypeProvider
    resource.ResourceLinksProvider
    resource.ResourceMetaProvider
    resource.ResourceParamsProvider
    resource.ResourceDataProvider
    resource.OriginProvider

    MediaType() map[string]interface{}
}

func NewPostPublishResource Uses

func NewPostPublishResource(id int, r resource.Resource) PostPublishedResource

Package postpub imports 8 packages (graph) and is imported by 15 packages. Updated 2020-07-23. Refresh now. Tools for package owners.