4 * Theme override for a section of the help page.
6 * This implementation divides the links into 4 columns.
9 * - title: The section title.
10 * - description: The description text for the section.
11 * - links: Links to display in the section.
12 * - empty: Text to display if there are no links.
15 <div class="clearfix">
17 <p>{{ description }}</p>
19 {# Calculate the column length, to divide links into 4 columns. #}
20 {% set size = links|length // 4 %}
21 {% if size * 4 < links|length %}
22 {% set size = size + 1 %}
25 {# Output the links in 4 columns. #}
27 {% for link in links %}
29 {# Start a new column. #}
30 <div class="layout-column layout-column--quarter"><ul>
33 {% set count = count + 1 %}
34 {% if count >= size %}
35 {# End the current column. #}
41 {# End the last column, if one is open. #}