Skip to content

Commit

Permalink
undo an optimization (for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
hry-gh committed Aug 3, 2024
1 parent 3fbe722 commit 9497d11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
{%- if subsection.subsections -%}
<ul>
{%- for lowerSubPath in subsection.subsections | sort-%}
{% set lowerSubsection = get_section(path=lowerSubPath, metadata_only=true) %}
{% set lowerSubsection = get_section(path=lowerSubPath) %}{# TODO: this is the most expensive call to get_section() we have, need to optimize to save 20s #}
{{- self::render_subsection(currentPage = currentPage, subsection=lowerSubsection, depth=depth+1) -}}
{%- endfor -%}
</ul>
Expand Down

0 comments on commit 9497d11

Please sign in to comment.