aboutsummaryrefslogtreecommitdiff
path: root/templates/macros/create_stork_toml.html
diff options
context:
space:
mode:
authorJieiku2024-08-05 18:07:12 -0700
committerJieiku2024-08-05 18:07:12 -0700
commit6c195035966d1b1d2cac50f9aacc3617b3a0e475 (patch)
tree1e6b12dafd9d214ae86d09db96cab3119503e366 /templates/macros/create_stork_toml.html
parent8e7498017f7d423cf45dc58dc9d254904ccd08d0 (diff)
downloadabridge-6c195035966d1b1d2cac50f9aacc3617b3a0e475.tar.gz
abridge-6c195035966d1b1d2cac50f9aacc3617b3a0e475.tar.bz2
abridge-6c195035966d1b1d2cac50f9aacc3617b3a0e475.zip
simplify switching search library
Diffstat (limited to 'templates/macros/create_stork_toml.html')
-rw-r--r--templates/macros/create_stork_toml.html15
1 files changed, 0 insertions, 15 deletions
diff --git a/templates/macros/create_stork_toml.html b/templates/macros/create_stork_toml.html
deleted file mode 100644
index ee1d765..0000000
--- a/templates/macros/create_stork_toml.html
+++ /dev/null
@@ -1,15 +0,0 @@
-{%- macro from_section(section) -%}
-{%- set section = get_section(path=section) -%}
-{%- for post in section.pages -%}
-{%- if not post.draft %} {path = {{ '.' ~ post.path ~ 'index.html' | json_encode | safe }}, url = {{ post.permalink | json_encode | safe }}, title = {{ post.title | striptags | json_encode | safe }}}
-{%- set found = true -%}
-{%- if not loop.last -%},
-{% endif -%}
-{%- endif -%}
-{%- endfor -%}
-{%- if found and section.subsections -%},
-{% for subsection in section.subsections -%}
-{{ self::from_section(section=subsection) }}
-{%- endfor -%}
-{%- endif -%}
-{%- endmacro from_section -%}