mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-19 11:15:49 +00:00
Use dataLayer for page type info
This commit is contained in:
9
template/macro-get_funnel.jinja
Normal file
9
template/macro-get_funnel.jinja
Normal file
@@ -0,0 +1,9 @@
|
||||
{% macro get_funnel(pages, page) -%}
|
||||
{%- set concepts = pages|selectattr('html', 'defined_and_equalto', 'concepts.html')|first -%}
|
||||
{%- set tutorials = pages|selectattr('html', 'defined_and_equalto', 'tutorials.html')|first -%}
|
||||
{%- set references = pages|selectattr('html', 'defined_and_equalto', 'references.html')|first -%}
|
||||
{%- if concepts.is_ancestor_of(page.html) -%}Concepts
|
||||
{%- elif tutorials.is_ancestor_of(page.html) -%}Tutorials
|
||||
{%- elif tutorials.is_ancestor_of(page.html) -%}References
|
||||
{%- else -%}Other{%- endif -%}
|
||||
{%- endmacro %}
|
||||
Reference in New Issue
Block a user