A hero section is a highlighted section on the page front-page, for blogs it may be useful to highlight author social links and expose a short version of the about/bio.
Example:
Implementation
marmite.yaml
extra:
hero: hero.md
Then, when rendering the site, if site.extra.hero is defined, marmite will parse the markdown on hero.md and make it available on global context on site.includes.hero, so in the template
{%if site.includes.hero is defined %}
{{site.includes.hero}}
...
A hero section is a highlighted section on the page front-page, for blogs it may be useful to highlight author social links and expose a short version of the about/bio.
Example:
Implementation
marmite.yaml
Then, when rendering the site, if site.extra.hero is defined, marmite will parse the markdown on hero.md and make it available on global context on site.includes.hero, so in the template