<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Data functions on Hugo</title><link>https://v0-122-0--gohugoio.netlify.app/functions/data/</link><description>Recent content in Data functions on Hugo</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="https://v0-122-0--gohugoio.netlify.app/functions/data/index.xml" rel="self" type="application/rss+xml"/><item><title>data.GetCSV</title><link>https://v0-122-0--gohugoio.netlify.app/functions/data/getcsv/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/data/getcsv/</guid><description>Given the following directory structure:
my-project/ └── other-files/ └── pets.csv Access the data with either of the following:
{{ $data := getCSV &amp;#34;,&amp;#34; &amp;#34;other-files/pets.csv&amp;#34; }} {{ $data := getCSV &amp;#34;,&amp;#34; &amp;#34;other-files/&amp;#34; &amp;#34;pets.csv&amp;#34; }} When working with local data, the filepath is relative to the working directory.
You must not place CSV files in the project&amp;rsquo;s data directory.
Access remote data with either of the following:
{{ $data := getCSV &amp;#34;,&amp;#34; &amp;#34;https://example.</description></item><item><title>data.GetJSON</title><link>https://v0-122-0--gohugoio.netlify.app/functions/data/getjson/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/data/getjson/</guid><description>Given the following directory structure:
my-project/ └── other-files/ └── books.json Access the data with either of the following:
{{ $data := getJSON &amp;#34;other-files/books.json&amp;#34; }} {{ $data := getJSON &amp;#34;other-files/&amp;#34; &amp;#34;books.json&amp;#34; }} When working with local data, the filepath is relative to the working directory.
Access remote data with either of the following:
{{ $data := getJSON &amp;#34;https://example.org/books.json&amp;#34; }} {{ $data := getJSON &amp;#34;https://example.org/&amp;#34; &amp;#34;books.json&amp;#34; }} The resulting data structure is a JSON object:</description></item></channel></rss>