HUGO
News Docs Themes Community GitHub

Get

SHORTCODE.Get ARG

Returns the value of the given argument.

Inner

SHORTCODE.Inner

Returns the content between opening and closing shortcode tags, applicable when the shortcode call includes a closing tag.

InnerDeindent

SHORTCODE.InnerDeindent

Returns the content between opening and closing shortcode tags, with indentation removed, applicable when the shortcode call includes a closing tag.

IsNamedParams

SHORTCODE.IsNamedParams

Reports whether the shortcode call uses named arguments.

Name

SHORTCODE.Name

Returns the shortcode file name, excluding the file extension.

Ordinal

SHORTCODE.Ordinal

Returns the zero-based ordinal of the shortcode in relation to its parent.

Page

SHORTCODE.Page

Returns the Page object from which the shortcode was called.

Params

SHORTCODE.Params

Returns a collection of the shortcode arguments.

Parent

SHORTCODE.Parent

Returns the parent shortcode context in nested shortcodes.

Position

SHORTCODE.Position

Returns the file name and position from which the shortcode was called.

Ref

SHORTCODE.Ref OPTIONS

Returns the absolute URL of the page with the given path, language, and output format.

RelRef

SHORTCODE.RelRef OPTIONS

Returns the relative URL of the page with the given path, language, and output format.

Scratch

SHORTCODE.Scratch

Returns a "scratch pad" to store and manipulate data, scoped to the current shortcode.

Site

SHORTCODE.Site

Returns the Site object.

Store

SHORTCODE.Store

Returns a "scratch pad" to store and manipulate data, scoped to the current shortcode.