package postpub

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

Index

Constants

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

Types

type PostPublishResource

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

postPublishResource holds a Resource to be transformed post publishing.

func (*PostPublishResource) Content

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

func (*PostPublishResource) Data

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

func (*PostPublishResource) GetFieldString

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

func (*PostPublishResource) MediaType

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

func (*PostPublishResource) Name

func (r *PostPublishResource) Name() string

func (*PostPublishResource) Origin

func (*PostPublishResource) Params

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

func (*PostPublishResource) ResourceType

func (r *PostPublishResource) ResourceType() string

func (*PostPublishResource) Title

func (r *PostPublishResource) Title() string

type PostPublishedResource

func NewPostPublishResource

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

Source Files

fields.go postpub.go

Version
v0.86.0
Published
Jul 21, 2021
Platform
linux/amd64
Imports
8 packages
Last checked
3 hours ago

Tools for package owners.