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

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

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