diff options
| author | Jieiku | 2024-08-07 14:16:53 -0700 |
|---|---|---|
| committer | Jieiku | 2024-08-07 14:16:53 -0700 |
| commit | 126c4c9c914c178a9dbb682e6845ee0b51902797 (patch) | |
| tree | 9e6fb03d7cfaeb7d7f11cb7335cabe6fc028f87d /templates | |
| parent | dcfd66a2f8ef4d1777deaaabed94d90c9e247dc8 (diff) | |
| download | abridge-126c4c9c914c178a9dbb682e6845ee0b51902797.tar.gz abridge-126c4c9c914c178a9dbb682e6845ee0b51902797.tar.bz2 abridge-126c4c9c914c178a9dbb682e6845ee0b51902797.zip | |
node script cleanup
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/macros/create_tinysearch_json.html | 27 | ||||
| -rw-r--r-- | templates/tinysearch_json.html | 5 |
2 files changed, 0 insertions, 32 deletions
diff --git a/templates/macros/create_tinysearch_json.html b/templates/macros/create_tinysearch_json.html deleted file mode 100644 index fcc1f5a..0000000 --- a/templates/macros/create_tinysearch_json.html +++ /dev/null @@ -1,27 +0,0 @@ -{%- macro from_section(section) -%} -{%- set section = get_section(path=section) -%} -{%- for post in section.pages -%} -{%- if not post.draft -%} -{%- set found = true -%} -{ -"title": {{ post.title | striptags | json_encode | safe }}, -"url": {{ post.permalink | json_encode | safe }}, -"meta": {% if post.summary %} - {{- post.summary | striptags | truncate(length=150) | json_encode | safe }} - {%- elif post.description %} - {{- post.description | striptags | truncate(length=150) | json_encode | safe }} - {%- elif post.content %} - {{- post.content | striptags | truncate(length=150) | json_encode | safe }} - {%- endif %}, -"body": {{ post.content | striptags | json_encode | safe }} -} -{%- 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 -%} diff --git a/templates/tinysearch_json.html b/templates/tinysearch_json.html deleted file mode 100644 index 37f83a1..0000000 --- a/templates/tinysearch_json.html +++ /dev/null @@ -1,5 +0,0 @@ -{%- import "macros/create_tinysearch_json.html" as create_tinysearch_json -%} - -{%- if config.extra.search_library %}{%- if config.extra.search_library == "tinysearch" %} -[{{ create_tinysearch_json::from_section(section="_index.md", config=config) }}] -{%- endif %}{%- endif %}
\ No newline at end of file |
