<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Encoding functions on Hugo</title><link>https://v0-122-0--gohugoio.netlify.app/functions/encoding/</link><description>Recent content in Encoding functions on Hugo</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="https://v0-122-0--gohugoio.netlify.app/functions/encoding/index.xml" rel="self" type="application/rss+xml"/><item><title>encoding.Base64Decode</title><link>https://v0-122-0--gohugoio.netlify.app/functions/encoding/base64decode/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/encoding/base64decode/</guid><description>{{ &amp;#34;SHVnbw==&amp;#34; | base64Decode }} → Hugo Use the base64Decode function to decode responses from APIs. For example, the result of this call to GitHub&amp;rsquo;s API contains the base64-encoded representation of the repository&amp;rsquo;s README file:
https://api.github.com/repos/gohugoio/hugo/readme To retrieve and render the content:
{{ $u := &amp;#34;https://api.github.com/repos/gohugoio/hugo/readme&amp;#34; }} {{ with resources.GetRemote $u }} {{ with .Err }} {{ errorf &amp;#34;%s&amp;#34; . }} {{ else }} {{ with . | transform.Unmarshal }} {{ .</description></item><item><title>encoding.Base64Encode</title><link>https://v0-122-0--gohugoio.netlify.app/functions/encoding/base64encode/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/encoding/base64encode/</guid><description>{{ &amp;#34;Hugo&amp;#34; | base64Encode }} → SHVnbw==</description></item><item><title>encoding.Jsonify</title><link>https://v0-122-0--gohugoio.netlify.app/functions/encoding/jsonify/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/encoding/jsonify/</guid><description>To customize the printing of the JSON, pass an options map as the first argument. Supported options are &amp;ldquo;prefix&amp;rdquo; and &amp;ldquo;indent&amp;rdquo;. Each JSON element in the output will begin on a new line beginning with prefix followed by one or more copies of indent according to the indentation nesting.
{{ dict &amp;#34;title&amp;#34; .Title &amp;#34;content&amp;#34; .Plain | jsonify }} {{ dict &amp;#34;title&amp;#34; .Title &amp;#34;content&amp;#34; .Plain | jsonify (dict &amp;#34;indent&amp;#34; &amp;#34; &amp;#34;) }} {{ dict &amp;#34;title&amp;#34; .</description></item></channel></rss>