☀ Hey, Automad version 2 is now available as an alpha version.
Read more here!
Try a Demo
♡ Sponsor
Index
Inheritance
Show All
Blocks
Case
Cheat Sheet
Command Line Interface
Composer
Condition
Configuration
Content
Context
Dashboard
Date
Development
Extension
File
Filelist
Filter
Find
HTML
Headless
Image
Inheritance ✓
Installation
Language
Layout
Loop
Math
Method
Navigation
Object
PHP
Package
Pagelist
Pipe
Preview
Recursion
Regex
SEO
Session
Snippet
Sort
Statement
Strip
Theme
URL
Variable
v2
3
pages found
Template Language ⁄
Snippets
— Template Language
The snippet statement allows for defining reusable code snippets and is therefore also the basis for any kind of recursion in Automad. A snippet always inherits the context of the calling code. To use a snippet, it is enough to put the snippet's name in statement delimiters.
Template Language ⁄
Includes
— Template Language
In many cases, different templates across a theme use recurring components such as a header, a navbar or a footer. Those elements can be stored in separate files and included whenever needed. To include such an external snippet, simply wrap its path relative to the current file ...
Template Language ⁄
Inheritance
— Template Language
In Automad, inheritance can be used to extend a template by simply including it into another one. To be able to actually change details in the derived version of a template it is important to understand how snippets work and how they can be used to override parts on an atomic ...
Automad
Getting Started
System
User Guide
Developer Guide
Headless Mode
Discuss
Packages
Live Demo
☀ Version 2