<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Path functions on Hugo</title><link>https://v0-122-0--gohugoio.netlify.app/functions/path/</link><description>Recent content in Path functions on Hugo</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="https://v0-122-0--gohugoio.netlify.app/functions/path/index.xml" rel="self" type="application/rss+xml"/><item><title>path.Base</title><link>https://v0-122-0--gohugoio.netlify.app/functions/path/base/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/path/base/</guid><description>{{ path.Base &amp;#34;a/news.html&amp;#34; }} → news.html {{ path.Base &amp;#34;news.html&amp;#34; }} → news.html {{ path.Base &amp;#34;a/b/c&amp;#34; }} → c {{ path.Base &amp;#34;/x/y/z/&amp;#34; }} → z {{ path.Base &amp;#34;&amp;#34; }} → .</description></item><item><title>path.BaseName</title><link>https://v0-122-0--gohugoio.netlify.app/functions/path/basename/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/path/basename/</guid><description> New in v0.101.0 {{ path.BaseName &amp;#34;a/news.html&amp;#34; }} → news {{ path.BaseName &amp;#34;news.html&amp;#34; }} → news {{ path.BaseName &amp;#34;a/b/c&amp;#34; }} → c {{ path.BaseName &amp;#34;/x/y/z/&amp;#34; }} → z {{ path.BaseName &amp;#34;&amp;#34; }} → .</description></item><item><title>path.Clean</title><link>https://v0-122-0--gohugoio.netlify.app/functions/path/clean/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/path/clean/</guid><description>See Go&amp;rsquo;s path.Clean documentation for details.
{{ path.Clean &amp;#34;foo/bar&amp;#34; }} → foo/bar {{ path.Clean &amp;#34;/foo/bar&amp;#34; }} → /foo/bar {{ path.Clean &amp;#34;/foo/bar/&amp;#34; }} → /foo/bar {{ path.Clean &amp;#34;/foo//bar/&amp;#34; }} → /foo/bar {{ path.Clean &amp;#34;/foo/./bar/&amp;#34; }} → /foo/bar {{ path.Clean &amp;#34;/foo/../bar/&amp;#34; }} → /bar {{ path.Clean &amp;#34;/../foo/../bar/&amp;#34; }} → /bar {{ path.Clean &amp;#34;&amp;#34; }} → .</description></item><item><title>path.Dir</title><link>https://v0-122-0--gohugoio.netlify.app/functions/path/dir/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/path/dir/</guid><description>{{ path.Dir &amp;#34;a/news.html&amp;#34; }} → a {{ path.Dir &amp;#34;news.html&amp;#34; }} → . {{ path.Dir &amp;#34;a/b/c&amp;#34; }} → a/b {{ path.Dir &amp;#34;/a/b/c&amp;#34; }} → /a/b {{ path.Dir &amp;#34;/a/b/c/&amp;#34; }} → /a/b/c {{ path.Dir &amp;#34;&amp;#34; }} → .</description></item><item><title>path.Ext</title><link>https://v0-122-0--gohugoio.netlify.app/functions/path/ext/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/path/ext/</guid><description>The extension is the suffix beginning at the final dot in the final slash-separated element of path; it is empty if there is no dot.
{{ path.Ext &amp;#34;a/b/c/news.html&amp;#34; }} → .html</description></item><item><title>path.Join</title><link>https://v0-122-0--gohugoio.netlify.app/functions/path/join/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/path/join/</guid><description>See Go&amp;rsquo;s path.Join and path.Clean documentation for details.
{{ path.Join &amp;#34;partial&amp;#34; &amp;#34;news.html&amp;#34; }} → partial/news.html {{ path.Join &amp;#34;partial/&amp;#34; &amp;#34;news.html&amp;#34; }} → partial/news.html {{ path.Join &amp;#34;foo/bar&amp;#34; &amp;#34;baz&amp;#34; }} → foo/bar/baz {{ path.Join &amp;#34;foo&amp;#34; &amp;#34;bar&amp;#34; &amp;#34;baz&amp;#34; }} → foo/bar/baz {{ path.Join &amp;#34;foo&amp;#34; &amp;#34;&amp;#34; &amp;#34;baz&amp;#34; }} → foo/baz {{ path.Join &amp;#34;foo&amp;#34; &amp;#34;.&amp;#34; &amp;#34;baz&amp;#34; }} → foo/baz {{ path.Join &amp;#34;foo&amp;#34; &amp;#34;..&amp;#34; &amp;#34;baz&amp;#34; }} → baz {{ path.Join &amp;#34;/..&amp;#34; &amp;#34;foo&amp;#34; &amp;#34;..&amp;#34; &amp;#34;baz&amp;#34; }} → baz</description></item><item><title>path.Split</title><link>https://v0-122-0--gohugoio.netlify.app/functions/path/split/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/path/split/</guid><description>If there is no slash in the given path, path.Split returns an empty directory, and file set to path. The returned values have the property that path = dir+file.
{{ $dirFile := path.Split &amp;#34;a/news.html&amp;#34; }} {{ $dirFile.Dir }} → a/ {{ $dirFile.File }} → news.html {{ $dirFile := path.Split &amp;#34;news.html&amp;#34; }} {{ $dirFile.Dir }} → &amp;#34;&amp;#34; (empty string) {{ $dirFile.File }} → news.html {{ $dirFile := path.Split &amp;#34;a/b/c&amp;#34; }} {{ $dirFile.</description></item></channel></rss>