<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>URL functions on Hugo</title><link>https://v0-122-0--gohugoio.netlify.app/functions/urls/</link><description>Recent content in URL functions on Hugo</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="https://v0-122-0--gohugoio.netlify.app/functions/urls/index.xml" rel="self" type="application/rss+xml"/><item><title>urls.AbsLangURL</title><link>https://v0-122-0--gohugoio.netlify.app/functions/urls/abslangurl/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/urls/abslangurl/</guid><description>Use this function with both monolingual and multilingual configurations. The URL returned by this function depends on:
Whether the input begins with a slash The baseURL in site configuration The language prefix, if any In examples that follow, the project is multilingual with content in both Español (es) and English (en). The default language is Español. The returned values are from the English site.
Input does not begin with a slash If the input does not begin with a slash, the resulting URL will be correct regardless of the baseURL.</description></item><item><title>urls.AbsURL</title><link>https://v0-122-0--gohugoio.netlify.app/functions/urls/absurl/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/urls/absurl/</guid><description>With multilingual configurations, use the absLangURL function instead. The URL returned by this function depends on:
Whether the input begins with a slash The baseURL in site configuration Input does not begin with a slash If the input does not begin with a slash, the resulting URL will be correct regardless of the baseURL.
With baseURL = https://example.org/
{{ absURL &amp;#34;&amp;#34; }} → https://example.org/ {{ absURL &amp;#34;articles&amp;#34; }} → https://example.org/articles {{ absURL &amp;#34;style.</description></item><item><title>urls.Anchorize</title><link>https://v0-122-0--gohugoio.netlify.app/functions/urls/anchorize/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/urls/anchorize/</guid><description>The anchorize and urlize functions are similar:
Use the anchorize function to generate an HTML id attribute value Use the urlize function to sanitize a string for usage in a URL For example:
{{ $s := &amp;#34;A B C&amp;#34; }} {{ $s | anchorize }} → a-b-c {{ $s | urlize }} → a-b-c {{ $s := &amp;#34;a b c&amp;#34; }} {{ $s | anchorize }} → a-b---c {{ $s | urlize }} → a-b-c {{ $s := &amp;#34;&amp;lt; a, b, &amp;amp; c &amp;gt;&amp;#34; }} {{ $s | anchorize }} → -a-b--c- {{ $s | urlize }} → a-b-c {{ $s := &amp;#34;main.</description></item><item><title>urls.JoinPath</title><link>https://v0-122-0--gohugoio.netlify.app/functions/urls/joinpath/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/urls/joinpath/</guid><description>New in v0.112.0 {{ urls.JoinPath }} → &amp;#34;&amp;#34; (empty string) {{ urls.JoinPath &amp;#34;&amp;#34; }} → / {{ urls.JoinPath &amp;#34;a&amp;#34; }} → a {{ urls.JoinPath &amp;#34;a&amp;#34; &amp;#34;b&amp;#34; }} → a/b {{ urls.JoinPath &amp;#34;/a&amp;#34; &amp;#34;b&amp;#34; }} → /a/b {{ urls.JoinPath &amp;#34;https://example.org&amp;#34; &amp;#34;b&amp;#34; }} → https://example.org/b {{ urls.JoinPath (slice &amp;#34;a&amp;#34; &amp;#34;b&amp;#34;) }} → a/b Unlike the path.Join function, urls.JoinPath retains consecutive leading slashes.</description></item><item><title>urls.Parse</title><link>https://v0-122-0--gohugoio.netlify.app/functions/urls/parse/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/urls/parse/</guid><description>The urls.Parse function parses a URL into a URL structure. The URL may be relative (a path, without a host) or absolute (starting with a scheme). Hugo throws an error when parsing an invalid URL.
{{ $url := &amp;#34;https://example.org:123/foo?a=6&amp;amp;b=7#bar&amp;#34; }} {{ $u := urls.Parse $url }} {{ $u.IsAbs }} → true {{ $u.Scheme }} → https {{ $u.Host }} → example.org:123 {{ $u.Hostname }} → example.org {{ $u.RequestURI }} → /foo?</description></item><item><title>urls.Ref</title><link>https://v0-122-0--gohugoio.netlify.app/functions/urls/ref/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/urls/ref/</guid><description>The first argument is the context of the page from which to resolve relative paths, typically the current page.
The second argument is a path to a page, with or without a file extension, with or without an anchor. A path without a leading / is first resolved relative to the given context, then to the remainder of the site. Alternatively, provide an options map instead of a path.
{{ ref .</description></item><item><title>urls.RelLangURL</title><link>https://v0-122-0--gohugoio.netlify.app/functions/urls/rellangurl/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/urls/rellangurl/</guid><description>Use this function with both monolingual and multilingual configurations. The URL returned by this function depends on:
Whether the input begins with a slash The baseURL in site configuration The language prefix, if any In examples that follow, the project is multilingual with content in both Español (es) and English (en). The default language is Español. The returned values are from the English site.
Input does not begin with a slash If the input does not begin with a slash, the resulting URL will be correct regardless of the baseURL.</description></item><item><title>urls.RelRef</title><link>https://v0-122-0--gohugoio.netlify.app/functions/urls/relref/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/urls/relref/</guid><description>The first argument is the context of the page from which to resolve relative paths, typically the current page.
The second argument is a path to a page, with or without a file extension, with or without an anchor. A path without a leading / is first resolved relative to the given context, then to the remainder of the site. Alternatively, provide an options map instead of a path. .</description></item><item><title>urls.RelURL</title><link>https://v0-122-0--gohugoio.netlify.app/functions/urls/relurl/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/urls/relurl/</guid><description>With multilingual configurations, use the relLangURL function instead. The URL returned by this function depends on:
Whether the input begins with a slash The baseURL in site configuration Input does not begin with a slash If the input does not begin with a slash, the resulting URL will be correct regardless of the baseURL.
With baseURL = https://example.org/
{{ relURL &amp;#34;&amp;#34; }} → / {{ relURL &amp;#34;articles&amp;#34; }} → /articles {{ relURL &amp;#34;style.</description></item><item><title>urls.URLize</title><link>https://v0-122-0--gohugoio.netlify.app/functions/urls/urlize/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/urls/urlize/</guid><description>The anchorize and urlize functions are similar:
Use the anchorize function to generate an HTML id attribute value Use the urlize function to sanitize a string for usage in a URL For example:
{{ $s := &amp;#34;A B C&amp;#34; }} {{ $s | anchorize }} → a-b-c {{ $s | urlize }} → a-b-c {{ $s := &amp;#34;a b c&amp;#34; }} {{ $s | anchorize }} → a-b---c {{ $s | urlize }} → a-b-c {{ $s := &amp;#34;&amp;lt; a, b, &amp;amp; c &amp;gt;&amp;#34; }} {{ $s | anchorize }} → -a-b--c- {{ $s | urlize }} → a-b-c {{ $s := &amp;#34;main.</description></item></channel></rss>