package images

import "github.com/gohugoio/hugo/tpl/images"

Package images provides template functions for manipulating images.

Index

Package Files

images.go init.go

type Namespace

type Namespace struct {
    *images.Filters
    // contains filtered or unexported fields
}

Namespace provides template functions for the "images" namespace.

func New

func New(deps *deps.Deps) *Namespace

New returns a new instance of the images-namespaced template functions.

func (*Namespace) Config

func (ns *Namespace) Config(path any) (image.Config, error)

Config returns the image.Config for the specified path relative to the working directory.

func (*Namespace) Filter

func (ns *Namespace) Filter(args ...any) (images.ImageResource, error)
Version
v0.101.0 (latest)
Published
Jun 16, 2022
Platform
linux/amd64
Imports
11 packages (graph)
Last checked
4 hours ago

Tools for package owners.