|
10 | 10 |
|
11 | 11 | {% unless currentProductTree.page.hidden %} |
12 | 12 |
|
13 | | -{% if currentProductTree.page.shortTitle and currentProductTree.page.shortTitle != '' %}{% assign productTitle = currentProductTree.page.shortTitle %}{% else %}{% assign productTitle = currentProductTree.page.title %}{% endif %} |
| 13 | +{% if currentProductTree.renderedShortTitle %}{% assign productTitle = currentProductTree.renderedShortTitle %}{% else %}{% assign productTitle = currentProductTree.renderedFullTitle %}{% endif %} |
14 | 14 |
|
15 | 15 | <li title="" class="sidebar-product mb-2"> |
16 | 16 | <a href="{{currentProductTree.href}}" class="pl-4 pr-5 pb-1 f4">{{ productTitle }}</a> |
|
20 | 20 | {% for childPage in currentProductTree.childPages %} |
21 | 21 | {% if childPage.page.documentType == "article" %}{% assign standaloneCategory = true %}{% else %}{% assign standaloneCategory = false %}{% endif %} |
22 | 22 | <li class="sidebar-category py-1 {% if currentPath contains childPage.href %}active {% if currentPath == childPage.href %}is-current-page {% endif %}{% endif %}{% if standaloneCategory %}standalone-category{% endif %}"> |
23 | | - {% if childPage.page.shortTitle and childPage.page.shortTitle != '' %}{% assign categoryTitle = childPage.page.shortTitle %}{% else %}{% assign categoryTitle = childPage.page.title %}{% endif %} |
| 23 | + {% if childPage.renderedShortTitle %}{% assign childTitle = childPage.renderedShortTitle %}{% else %}{% assign childTitle = childPage.renderedFullTitle %}{% endif %} |
24 | 24 | {% if standaloneCategory %} |
25 | | - <a href="{{childPage.href}}" class="pl-4 pr-2 py-2 f6 text-uppercase d-block flex-auto mr-3">{{ categoryTitle }}</a> |
| 25 | + <a href="{{childPage.href}}" class="pl-4 pr-2 py-2 f6 text-uppercase d-block flex-auto mr-3">{{ childTitle }}</a> |
26 | 26 | {% else %} |
27 | 27 | <details class="dropdown-withArrow details details-reset" {% if currentPath contains childPage.href or forloop.index < 4 %}open{% endif %}> |
28 | 28 | <summary> |
29 | 29 | <div class="d-flex flex-justify-between"> |
30 | | - <a href="{{childPage.href}}" class="pl-4 pr-2 py-2 f6 text-uppercase d-block flex-auto mr-3">{{ categoryTitle }}</a> |
| 30 | + <a href="{{childPage.href}}" class="pl-4 pr-2 py-2 f6 text-uppercase d-block flex-auto mr-3">{{ childTitle }}</a> |
31 | 31 | {% if forloop.index < 4 %} |
32 | 32 | <svg xmlns="http://www.w3.org/2000/svg" class="octicon flex-shrink-0 arrow mr-3" style="margin-top:7px" viewBox="0 0 16 16" width="16" height="16"> <path fill-rule="evenodd" clip-rule="evenodd" d="M12.7803 6.21967C13.0732 6.51256 13.0732 6.98744 12.7803 7.28033L8.53033 11.5303C8.23744 11.8232 7.76256 11.8232 7.46967 11.5303L3.21967 7.28033C2.92678 6.98744 2.92678 6.51256 3.21967 6.21967C3.51256 5.92678 3.98744 5.92678 4.28033 6.21967L8 9.93934L11.7197 6.21967C12.0126 5.92678 12.4874 5.92678 12.7803 6.21967Z"></path></svg> |
33 | 33 | {% endif %} |
|
39 | 39 | {% if childPage.childPages[0].page.documentType == "mapTopic" %} |
40 | 40 | <ul class="sidebar-topics list-style-none position-relative"> |
41 | 41 | {% for grandchildPage in childPage.childPages %} |
| 42 | + {% if grandchildPage.renderedShortTitle %}{% assign grandchildTitle = grandchildPage.renderedShortTitle %}{% else %}{% assign grandchildTitle = grandchildPage.renderedFullTitle %}{% endif %} |
42 | 43 | <li class="sidebar-maptopic {% if currentPath contains grandchildPage.href %}active {% if currentPath == grandchildPage.href %}is-current-page{% endif %}{% endif %}"> |
43 | | - <a href="{{grandchildPage.href}}" class="pl-4 pr-5 py-2">{{ grandchildPage.page.title }} </a> |
| 44 | + <a href="{{grandchildPage.href}}" class="pl-4 pr-5 py-2">{{ grandchildTitle }} </a> |
44 | 45 | <ul class="sidebar-articles my-2"> |
45 | 46 | {% for greatgrandchildPage in grandchildPage.childPages %} |
| 47 | + {% if greatgrandchildPage.renderedShortTitle %}{% assign greatgrandchildTitle = greatgrandchildPage.renderedShortTitle %}{% else %}{% assign greatgrandchildTitle = greatgrandchildPage.renderedFullTitle %}{% endif %} |
46 | 48 | <li class="sidebar-article {% if currentPath contains greatgrandchildPage.href %}active {% if currentPath == greatgrandchildPage.href %}is-current-page{% endif %}{% endif %}"> |
47 | | - <a href="{{greatgrandchildPage.href}}" class="pl-6 pr-5 py-1{% if forloop.last %} pb-2{% endif %}">{{ greatgrandchildPage.page.title }}</a> |
| 49 | + <a href="{{greatgrandchildPage.href}}" class="pl-6 pr-5 py-1{% if forloop.last %} pb-2{% endif %}">{{ greatgrandchildTitle }}</a> |
48 | 50 | </li> |
49 | 51 | {% endfor %} |
50 | 52 | </ul> |
|
55 | 57 | {% elsif childPage.childPages[0].page.documentType == "article" %} |
56 | 58 | <ul class="sidebar-articles list-style-none"> |
57 | 59 | {% for grandchildPage in childPage.childPages %} |
| 60 | + {% if grandchildPage.renderedShortTitle %}{% assign grandchildTitle = grandchildPage.renderedShortTitle %}{% else %}{% assign grandchildTitle = grandchildPage.renderedFullTitle %}{% endif %} |
58 | 61 | <li class="sidebar-article {% if currentPath contains grandchildPage.href %}active {% if currentPath == grandchildPage.href %}is-current-page{% endif %}{% endif %}"> |
59 | | - <a href="{{grandchildPage.href}}" class="pl-4 pr-5 py-1{% if forloop.last %} pb-2{% endif %}">{{ grandchildPage.page.title }}</a> |
| 62 | + <a href="{{grandchildPage.href}}" class="pl-4 pr-5 py-1{% if forloop.last %} pb-2{% endif %}">{{ grandchildTitle }}</a> |
60 | 63 | </li> |
61 | 64 | {% endfor %} |
62 | 65 | </ul> |
|
0 commit comments