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.
22 lines
994 B
22 lines
994 B
{% for link in include.links %}
|
|
{% capture url %}{{page.url}}{{link.url}}/{% endcapture %}
|
|
{% capture path %}{{url}}index.html{% endcapture %}
|
|
{% assign_page link_data = path %}
|
|
{% if page.url contains "/api/tinymce" %}
|
|
{% assign sectionPrefix = include.sectionTitle | append: "." %}
|
|
{% assign titleName = link_data.title_nav | or:link_data.title | replace:sectionPrefix.,"" %}
|
|
{% else %}
|
|
{% assign titleName = link_data.title_nav | or:link_data.title %}
|
|
{% endif %}
|
|
{% assign itemDescription = link_data.description_short | or:link_data.description %}
|
|
{% assign itemDescriptionLength = itemDescription | size %}
|
|
{% assign dataId = titleName | replace: '&', 'and' | slugify %}
|
|
<div>
|
|
<h2><a href="{{ site.baseurl }}{{ url }}" data-test-id="content-{{ dataId }}">{{ titleName }}</a></h2>
|
|
{% if itemDescriptionLength > 150 %}
|
|
<p>{{ itemDescription | truncatewords: 15 }}</p>
|
|
{% else %}
|
|
<p>{{ itemDescription }}</p>
|
|
{% endif %}
|
|
</div>
|
|
{% endfor %}
|