You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.2 KiB
34 lines
1.2 KiB
{% for link in include.links %}
|
|
{% capture preceding_address %}{{ include.preceding_address }}{{ link.url }}{% endcapture %}
|
|
|
|
{% if link.url contains '#' %}
|
|
{% capture page_path %}{{ include.preceding_address }}index.html{% endcapture %}
|
|
{% capture url %}{{ include.preceding_address }}{% endcapture %}
|
|
{% else %}
|
|
{% capture preceding_address %}{{ preceding_address }}/{% endcapture %}
|
|
{% capture page_path %}{{ preceding_address }}index.html{% endcapture %}
|
|
{% assign url = preceding_address %}
|
|
{% endif %}
|
|
|
|
{% assign_page page_data = page_path %}
|
|
|
|
{% if page_data.type != 'index' and page_data.type != 'folder' %}
|
|
"{{ page_data.title | search_index }}": "{{ url }}",
|
|
|
|
{% if page_data.description %}
|
|
"{{ page_data.description | search_index }}": "{{ url }}",
|
|
{% endif %}
|
|
|
|
{% if link.url contains '#' %}
|
|
"{{ link.url | search_index }}": "{{ url }}#{{ link.url | anchor }}",
|
|
{% endif %}
|
|
|
|
{% if page_data.keywords %}
|
|
"{{ page_data.keywords | search_index }}": "{{ url }}",
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{% if link.pages %}
|
|
{% include search-db.json links=link.pages preceding_address=preceding_address %}
|
|
{% endif %}
|
|
{% endfor %}
|