diff --git a/templates/base.html b/templates/base.html index e47dd9999..6a2adbcbc 100644 --- a/templates/base.html +++ b/templates/base.html @@ -55,7 +55,7 @@ {%- block menu -%} - {%- set index = get_section(path="_index.md") -%} + {%- set index = get_section(path="_index.md", metadata_only=true) -%} {%- for subsectionPath in index.subsections | sort -%} {%- set subsection = get_section(path=subsectionPath) -%} {{ macros::render_subsection(currentPage=pageOrSubsection, subsection=subsection, depth=0) -}} diff --git a/templates/macros.html b/templates/macros.html index e6990a737..06046f068 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -5,14 +5,14 @@ {%- set myParent = subsection.ancestors | last %} {%- endif %} - {%- set myParentSection = get_section(path=myParent) -%} + {%- set myParentSection = get_section(path=myParent, metadata_only=true) -%} {%- set subsectionParentUrl = subsection.ancestors | last %} - {%- set subsectionParent = get_section(path=subsectionParentUrl) %} + {%- set subsectionParent = get_section(path=subsectionParentUrl, metadata_only=true) %} {%- set renderAll = false %} {%- for page in currentPage.ancestors %} - {%- set iteratorSection = get_section(path=page) %} + {%- set iteratorSection = get_section(path=page, metadata_only=true) %} {%- if iteratorSection.path == subsectionParent.path %} {%- set_global renderAll = true %} {%- break %} @@ -59,7 +59,7 @@ {%- if subsection.subsections -%} {%- for lowerSubPath in subsection.subsections | sort-%} - {% set lowerSubsection = get_section(path=lowerSubPath) %} + {% set lowerSubsection = get_section(path=lowerSubPath, metadata_only=true) %} {{- self::render_subsection(currentPage = currentPage, subsection=lowerSubsection, depth=depth+1) -}} {%- endfor -%} @@ -78,7 +78,7 @@ {% macro render_subsection_pages(page, currentPage, subsection, depth, currentParent) %} {%- set renderAll = false %} {%- for page in currentPage.ancestors %} - {%- set iteratorSection = get_section(path=page) %} + {%- set iteratorSection = get_section(path=page, metadata_only=true) %} {%- if iteratorSection.path == subsection.path %} {%- set_global renderAll = true %} {%- break %} @@ -113,7 +113,7 @@ {% macro render_breadcrumbs(currentPage) %} {% set ancestorLength = currentPage.ancestors | length %} {% for i in range(start=2, end=ancestorLength) %} - {% set ancestorSection = get_section(path=currentPage.ancestors[i]) %} + {% set ancestorSection = get_section(path=currentPage.ancestors[i], metadata_only=true) %} {{ ancestorSection.title }} @@ -126,7 +126,7 @@ {% macro render_parent_type(page, recursive=true) %} {%- if page.extra.parent_type %} {%- set lookup = "objects" ~ page.extra.parent_type ~ "/_index.md" %} - {%- set url = get_section(path=lookup) %} + {%- set url = get_section(path=lookup, metadata_only=true) %} {%- if recursive %} {{- self::render_parent_type(page=url) }} {%- endif %} @@ -146,7 +146,7 @@ {%- else %} {%- set parent = page.ancestors | last %} {%- endif %} - {%- set parentSection = get_section(path=parent) %} + {%- set parentSection = get_section(path=parent, metadata_only=true) %} {%- if recursive %} {{- self::render_parent_type(page=parentSection) }} {%- endif %} @@ -166,7 +166,7 @@ {% set firstChar = type | split(pat="") | nth(n = 1) -%} {% if firstChar == "/" -%} {% set lookup = "objects" ~ type ~ "/_index.md" -%} - {% set url = get_section(path=lookup) -%} + {% set url = get_section(path=lookup, metadata_only=true) -%} {{url.title}} {%- else -%} {{type}} @@ -188,7 +188,7 @@ {% macro render_inherited_procs(parent_type) %} {% set lookup = "objects" ~ parent_type ~ "/_index.md" %} - {% set url = get_section(path=lookup) %} + {% set url = get_section(path=lookup, metadata_only=true) %} {% for possibleProcPageUrl in url.subsections %} {% set possibleProcPage = get_section(path=possibleProcPageUrl) %} {% if possibleProcPage.title == "proc" %} @@ -215,7 +215,7 @@ {% macro render_inherited_procs_page(page) %} {% set parent = page.ancestors | last %} - {% set parentSection = get_section(path=parent) %} + {% set parentSection = get_section(path=parent, metadata_only=true) %} {% if parentSection.extra.parent_type %} Inherited Procs: {{ self::render_inherited_procs(parent_type=parentSection.extra.parent_type) }} @@ -224,7 +224,7 @@ Inherited Procs: {% macro render_inherited_vars(parent_type) %} {% set lookup = "objects" ~ parent_type ~ "/_index.md" %} - {% set url = get_section(path=lookup) %} + {% set url = get_section(path=lookup, metadata_only=true) %} {% for possibleVarPageUrl in url.subsections %} {% set possibleVarPage = get_section(path=possibleVarPageUrl) %} {% if possibleVarPage.title == "var" %} @@ -251,7 +251,7 @@ Inherited Procs: {% macro render_inherited_vars_page(page) %} {% set parent = page.ancestors | last %} - {% set parentSection = get_section(path=parent) %} + {% set parentSection = get_section(path=parent, metadata_only=true) %} {% if parentSection.extra.parent_type %} Inherited Vars: {{ self::render_inherited_vars(parent_type=parentSection.extra.parent_type) }} diff --git a/templates/toml.html b/templates/toml.html index 450b7f77e..07290b0bc 100644 --- a/templates/toml.html +++ b/templates/toml.html @@ -14,8 +14,8 @@ {%- set num = page.ancestors | length %} {%- set sub = num - 1 %} {%- set parent = page.ancestors | nth(n=sub - 1) %} -{%- set parentSection = get_section(path=parent) %} -{%- set directParent = get_section(path=page.ancestors | last) -%} +{%- set parentSection = get_section(path=parent, metadata_only=true) %} +{%- set directParent = get_section(path=page.ancestors | last, metadata_only=true) -%} {%- if directParent.title == "proc" -%} {%- set title = page.title ~ " (" ~ parentSection.title ~ " Proc)" -%} {%- elif directParent.title == "var" -%} @@ -35,7 +35,7 @@ url_prefix = "{{config.base_url | safe }}" frontmatter_handling = "Omit" -{% set index = get_section(path="_index.md") -%} +{% set index = get_section(path="_index.md", metadata_only=true) -%} {% for subsection in index.subsections -%} {{ self::toml_recurse(subsectionPath=subsection) -}} {% endfor %} \ No newline at end of file