惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

I
InfoQ
博客园 - 司徒正美
爱范儿
爱范儿
F
Fortinet All Blogs
J
Java Code Geeks
量子位
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 三生石上(FineUI控件)
腾讯CDC
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
S
SegmentFault 最新的问题
Microsoft Security Blog
Microsoft Security Blog
T
The Blog of Author Tim Ferriss
V
V2EX
L
LangChain Blog
aimingoo的专栏
aimingoo的专栏
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
云风的 BLOG
云风的 BLOG
T
Tailwind CSS Blog
Blog — PlanetScale
Blog — PlanetScale
GbyAI
GbyAI
A
About on SuperTechFans
有赞技术团队
有赞技术团队
Y
Y Combinator Blog

HUGO - Latest posts

Is `go get <module>` required to import Hugo modules? Has anyone benchmarked build times for webP vs Avif? How does the team prefer to receive feedback for their docs Hugo Website Sometimes Serves an Older Version of a Page After Content Changes Systems & Signals — My Hugo DevOps Portfolio with Focus Tools, Matrix Mode and PWA Migrating Hugo from Netlify to Cloudflare Workers (Handling Contact Forms, D1, Turnstile & Analytics) AmazingRise/hugo-theme-diary broken with new hugo version Chroma YAML lexer issue Locate the template source for a deprecation warning Highlight template code in discourse forum using highlightjs-hugo Automatic Syntax Highlighting for Hugo templates Hugo v0.166.0 released Tailwind Labs is joining Shopify ExampleSite and Tailwind Introducing Stacknote — an editorial Hugo theme for technical blogs Impressed returning to Hugo! How to associate / connect between content files (md) and data files Multilingual links have changed Hugo's modular configuration syntax and strict validation are still in conflict How to left justify content in all pages using Ananke Executing Hugo builds inside of Go with a custom config? "Hero Images" on website's front page only (with carousell - rotates several images) Menu nesting doesn't work, hugo v0.165.0 (ananke theme, but maybe others work?) How to mount a node_modules folder? What should I name a Hugo-related IDE? How to deal with image processing failures when updating to 0.165.0? Question about the multi-dimensional content model Is there any other base template Post-processing of file types? (Automatic SVG text-to-path) What is the standard way to make page bundle images show up in a full text RSS feed?
Somebody set us up the BOM, or UTF-8 byte-order marker co...
angusm · 2026-09-18 · via HUGO - Latest posts

I’m unmarshalling a CSV file and iterating over the contents. The fragment of code looks like: {{ $data := dict }} {{ with $file := .datafile }} {{ with resources.Get (printf &quot;people/writing/%s&quot; $file) }} {{ $opts := dict &quot;targetType&quot; &quot;map&quot; }} {{ $data = transform.Unmarshal $opts . }} {{ end }} {{ range $data }} &lt;p&gt;Title = {{ index . &quot;title&quot; }}&lt;/p&gt; &lt;p&gt;Author = {{ index . &quot;author&quot; }}&lt;/p&gt; {{ end }} {{ end }} and the input data looks something like: title,author ...