urls
urls.AbsLangURL
(a any) → template.HTML
AbsLangURL takes a
given string and converts it to an absolute URL according
to a
page’s position in the project directory structure and the current
language.
Aliases: absLangURL
urls.AbsURL
(a any) → template.HTML
AbsURL takes a
given string and converts it to an absolute URL.
Aliases: absURL
urls.Anchorize
Anchorize creates sanitized anchor names that are compatible with Blackfriday.
Aliases: anchorize
Examples
{{ "This is a title" | anchorize }}
this-is-a-title
urls.Parse
Parse parses rawurl
into a URL structure. The rawurl
may be relative or
absolute.
urls.Ref
(in any, args any) → template.HTML
Ref returns the absolute URL path to a given content item.
Aliases: ref
urls.RelLangURL
(a any) → template.HTML
RelLangURL takes a
given string and prepends the relative path according to a
page’s position in the project directory structure and the current language.
Aliases: relLangURL
urls.RelRef
(in any, args any) → template.HTML
RelRef returns the relative URL path to a given content item.
Aliases: relref
urls.RelURL
(a any) → template.HTML
RelURL takes a
given string and prepends the relative path according to a
page’s position in the project directory structure.
Aliases: relURL
urls.URLize
URLize returns the given argument formatted as URL.
Aliases: urlize