{% assign api_stack = site.emptyArray %} {% assign file = include.file | default: “api/example.html” %} {% capture load %}{% include {{ file }} %}{% endcapture %} {% assign file_path = '_includes/' | append: file %} {% assign file_name = file | split: '/' | last | remove: '.html' %} {% capture file_title %}{% include filters/unslug.html string=file_name %}{% endcapture %} {% capture link_to_file %}{% include filters/link_to_file.html file=file_path %}{% endcapture %} {% assign file_info = “- **File [`” | append: file_path | append: “`](” | append: link_to_file | strip | append: “)**

" %}

{% assign api_content = api_stack | prepend: file_info %} {% include components/card.html header=file_title body=api_content classes='mb-4' %}