One of Automad’s core ideas is the concept of global defaults. Many fields can be set either globally or individually for each page. When a page is displayed, Automad first checks the page itself for a value. If nothing is set there, it falls back to the global data.
Think of things like logos or footer sections — you usually only want to define them in one place, in the global data. But if a specific page needs something different, you can set it there, and that page will use the new value while everything else keeps using the global default.
Falling Back to the Global Value
A page field only overrides the global value as long as it contains something. Empty fields are removed when a page is saved, so clearing a field on a page is enough to use the global value again. Select fields offer the Use global default setting option for the same purpose.
Custom Code Is Merged
The custom HTML, JavaScript and CSS fields in the Customizations tab are an exception. Instead of replacing the global code, the code of a page is appended to the code that is defined in Global Data and Files. This way, global integrations such as analytics keep working on pages that add their own code. Learn more about scripts and integrations and custom styles.