      {# Hwaro 0.17 exposes no source-path field on `page`, so derive the GitHub
         edit target from page.url. Strip the /ko prefix, choose the .ko.md/.md
         suffix, and use the slash count of the (de-prefixed) path to tell a
         section _index (2 slashes) from a regular page (3+). Crinja has no
         substring `in`, no char-`trim`, and no open/negative slices, so the
         trailing slash is turned into the suffix with a sentinel replace. #}
      {% set is_ko = page_language == "ko" %}
      {% set rel = page.url %}{% if is_ko %}{% set rel = page.url | replace("/ko/", "/") %}{% endif %}
      {% set suffix = ".md" %}{% if is_ko %}{% set suffix = ".ko.md" %}{% endif %}
      {% set nslash = (rel | length) - (rel | replace("/", "") | length) %}
      {% set src = "/index" ~ suffix %}
      {% if nslash == 2 %}{% set src = rel ~ "_index" ~ suffix %}{% elif nslash > 2 %}{% set src = (rel ~ "EOP") | replace("/EOP", suffix) %}{% endif %}
      {% if has_source %}
      <footer class="docs-footer">
        <span><a href="https://github.com/hahwul/dalfox/edit/main/docs/content{{ src }}" target="_blank" rel="noopener">{% if page_language == "ko" %}GitHub에서 이 문서 편집{% else %}Edit this page on GitHub{% endif %}</a></span>
      </footer>
      {% endif %}
    </main>
  </div>
  <div class="search-overlay" id="searchOverlay">
    <div class="search-modal">
      <div class="search-input-wrap">
        <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg>
        <input type="text" id="searchInput" placeholder="{% if page_language == "ko" %}문서 검색...{% else %}Search documentation...{% endif %}" aria-label="{% if page_language == "ko" %}문서 검색{% else %}Search documentation{% endif %}" autocomplete="off">
        <kbd>ESC</kbd>
      </div>
      <div class="search-results" id="searchResults"></div>
    </div>
  </div>
  <footer class="site-footer">
    <div class="footer-inner">
      <div class="footer-branding">
        <span>&copy; 2026 <a href="https://github.com/hahwul">HAHWUL</a></span>
        <span class="divider" style="color:var(--border-light)">·</span>
        <span>{% if page_language == "ko" %}MIT 라이선스로 배포{% else %}Released under the MIT License{% endif %}</span>
        <span class="divider" style="color:var(--border-light)">·</span>
        <span>{% if page_language == "ko" %}<a href="https://hwaro.hahwul.com" target="_blank" rel="noopener">hwaro</a>로 제작{% else %}Built with <a href="https://hwaro.hahwul.com" target="_blank" rel="noopener">hwaro</a>{% endif %}</span>
      </div>
      <div class="footer-links">
        <a href="https://github.com/hahwul/dalfox" target="_blank" rel="noopener">GitHub</a>
        <a href="https://github.com/hahwul/dalfox/releases" target="_blank" rel="noopener">{% if page_language == "ko" %}릴리스{% else %}Releases{% endif %}</a>
        <a href="https://github.com/hahwul/dalfox/issues" target="_blank" rel="noopener">{% if page_language == "ko" %}이슈{% else %}Issues{% endif %}</a>
        <a href="https://github.com/hahwul/dalfox/blob/main/CONTRIBUTING.md" target="_blank" rel="noopener">{% if page_language == "ko" %}기여하기{% else %}Contribute{% endif %}</a>
      </div>
    </div>
  </footer>
  <script src="{{ base_url }}/assets/js/highlight.min.js"></script>
  <script src="{{ base_url }}/js/search.js"></script>
  <script src="{{ base_url }}/js/toc.js"></script>
  <script src="{{ base_url }}/js/ui.js"></script>
  {{ auto_includes_js }}
</body>
</html>
