<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Global functions on Hugo</title><link>https://v0-122-0--gohugoio.netlify.app/functions/global/</link><description>Recent content in Global functions on Hugo</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="https://v0-122-0--gohugoio.netlify.app/functions/global/index.xml" rel="self" type="application/rss+xml"/><item><title>page</title><link>https://v0-122-0--gohugoio.netlify.app/functions/global/page/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/global/page/</guid><description>New in v0.111.0 At the top level of a template that receives a Page object in context, these are equivalent:
{{ .Params.foo }} {{ .Page.Params.foo }} {{ page.Params.foo }} When a Page object is not in context, you can use the global page function:
{{ page.Params.foo }} Do not use the global page function in shortcodes, partials called by shortcodes, or cached partials. See warnings below.
Explanation Hugo almost always passes a Page as the data context into the top level template (e.</description></item><item><title>site</title><link>https://v0-122-0--gohugoio.netlify.app/functions/global/site/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/global/site/</guid><description>At the top level of a template that receives the Site object in context, these are equivalent:
{{ .Site.Params.foo }} {{ site.Params.foo }} When the Site object is not in context, use the global site function:
{{ site.Params.foo }} To simplify your templates, use the global site function regardless of whether the Site object is in context.</description></item></channel></rss>