Skip to content
Snippets Groups Projects
Verified Commit e8ee202f authored by Jake's avatar Jake
Browse files

added 'before' and 'after' fields for page metadata

parent befd05a0
No related branches found
No related tags found
No related merge requests found
Pipeline #312683 failed
......@@ -52,3 +52,11 @@
<br />
{%- endif -%}
{%- endmacro -%}
{%- macro sections(sl, lang) -%}
{%- for s in sl -%}
<section>
{{ section(s, lang) }}
</section>
{%- endfor -%}
{%- endmacro -%}
......@@ -25,7 +25,13 @@
<header>
<h1>{{ page.title }}</h1>
</header>
{%- call(s) get.metadata_entry(page.slug, l, 'before') -%}
{{ render.sections(s, l) }}
{%- endcall -%}
{{ page.content }}
{%- call(s) get.metadata_entry(page.slug, l, 'after') -%}
{{ render.sections(s, l) }}
{%- endcall -%}
<footer>
{%- if page.authors -%}
<address>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment