Gopher

urls

Urls is Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

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  

(a any) → string

Anchorize creates sanitized anchor names that are compatible with Blackfriday.

Aliases: anchorize

Examples

{{ "This is a title" | anchorize }}
this-is-a-title

urls.Parse  

(rawurl any) → url.URL

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  

(a any) → string

URLize returns the given argument formatted as URL.

Aliases: urlize