hugo: github.com/gohugoio/hugo/transform Index | Files

package transform

import "github.com/gohugoio/hugo/transform"

Index

Package Files

absurl.go absurlreplacer.go chain.go hugogeneratorinject.go livereloadinject.go

Variables

var AbsURL = func(ct contentTransformer) {
    ar.replaceInHTML(ct)
}

AbsURL replaces relative URLs with absolute ones in HTML files, using the baseURL setting.

var AbsURLInXML = func(ct contentTransformer) {
    ar.replaceInXML(ct)
}

AbsURLInXML replaces relative URLs with absolute ones in XML files, using the baseURL setting.

func HugoGeneratorInject Uses

func HugoGeneratorInject(ct contentTransformer)

HugoGeneratorInject injects a meta generator tag for Hugo if none present.

func LiveReloadInject Uses

func LiveReloadInject(port int) func(ct contentTransformer)

LiveReloadInject returns a function that can be used to inject a script tag for the livereload JavaScript in a HTML document.

func NewChain Uses

func NewChain(trs ...link) chain

NewChain creates a chained content transformer given the provided transforms.

func NewEmptyTransforms Uses

func NewEmptyTransforms() []link

NewEmptyTransforms creates a new slice of transforms with a capacity of 20.

Package transform imports 7 packages (graph) and is imported by 7 packages. Updated 2017-08-03. Refresh now. Tools for package owners.