urls
urls.AbsLangURL
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
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
( any ) →
Parse parses rawurl into a URL structure. The rawurl may be relative or absolute.
urls.Ref
Ref returns the absolute URL path to a given content item.
Aliases: ref
urls.RelLangURL
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
RelRef returns the relative URL path to a given content item.
Aliases: relref
urls.RelURL
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