I have a website and on the most pages, I have a modular layout with a hero component. So, all hero.de.md files, look like this:
---
title: hero
body_classes: "modular"
class: p-hero
image_align: left
hero_classes: "text-light overlay-dark parallax"
hero_image: theme://images/hero/default.jpg
published: true
---
# Page Title
As you can see, the only real difference in all hero.de.md files is # Page Title: the frontmatter is every time the same. I know, I could hard-code it in the modular template, but if the user wants to have a different hero image, he should be able to change the hero_image.
How am I able to do this?
Versions:
Grav: 1.7.40
Theme: Quark: 2.0.4