Context And Variables In The Hugo Static Site Generator

In this article, we take a look at the topic of context and variables in Hugo, a popular static site generator. You’ll understand concepts such as the global context, flow control, and variables in Hugo templates, as well as data flow from content files through templates to partials and base templates. https://smashingmagazine.com/2021/02/context-variables-hugo-static-site-generator/

Creato 4y | 18 feb 2021, 14:20:17


Accedi per aggiungere un commento

Altri post in questo gruppo

Taking RWD To The Extreme

Tomasz Jakut reflects on the evolution of web design, from the days of table-based layouts and Flash games to the rise of responsive web design (RWD), which often feels like the end of history in web

7 feb 2025, 18:30:12 | Smashing magazine
Integrations: From Simple Data Transfer To Modern Composable Architectures

In today’s web development landscape, the concept of a monolithic application has become increasingly rare. Modern applications are composed of multiple specialized services, each of which handles spe

4 feb 2025, 14:10:08 | Smashing magazine
Look Closer, Inspiration Lies Everywhere (February 2025 Wallpapers Edition)

Let’s make the most of the shortest of all months, with a new collection of desktop wallpapers celebrating new opportunities, sweet memories, happy little moments, and everything in between. All of th

31 gen 2025, 10:30:06 | Smashing magazine
The Digital Playbook: A Crucial Counterpart To Your Design System

Design systems play a crucial role in today’s digital landscape, providing a blueprint for consistent and user-friendly interfaces. But there’s another tool that deserves equal attention: the digital

30 gen 2025, 13:40:03 | Smashing magazine
Transitioning Top-Layer Entries And The Display Property In CSS

It’s not always the big features that make our everyday lives easier; sometimes, it’s those ease-of-life features that truly enhance our projects. In this article, Brecht De Ruyte highlights two such

29 gen 2025, 14:30:04 | Smashing magazine
Svelte 5 And The Future Of Frameworks: A Chat With Rich Harris

After months of anticipation, debate, and even a bit of apprehension, Svelte 5 arrived earlier this year. Frederick O’Brien caught up with its creator, Rich Harris, to talk about the path that brought

28 gen 2025, 19:50:06 | Smashing magazine
Navigating The Challenges Of Modern Open-Source Authoring: Lessons Learned

Alvaro Saburido delves into the current state and challenges of Open-Source authoring, sharing lessons learned from both community- and company-driven initiatives. https://smashingmagazine.com/2025/01

21 gen 2025, 13:50:11 | Smashing magazine