зеркало из https://github.com/github/docs.git
Visually reflect structure of articles and map topics within categories displayed in "All docs" section of landing pages (#19377)
This commit is contained in:
Родитель
49aa99c579
Коммит
c3cc0ba70c
|
@ -16,8 +16,13 @@
|
|||
{% assign article = xarticle[1] %}
|
||||
<li class="mb-3 {% if forloop.index > maxArticles %}d-none{% endif %}">
|
||||
<a href="{{ article.href }}">
|
||||
{{ article.title }}
|
||||
</a>
|
||||
{{ article.title }}<!--
|
||||
--></a>
|
||||
{% comment %}
|
||||
<small class="color-text-secondary d-inline-block">
|
||||
• {{ article.childArticles | obj_size }} articles
|
||||
</small>
|
||||
{% endcomment %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% assign numArticles = maptopic.childArticles | obj_size %}
|
||||
|
|
|
@ -17,8 +17,11 @@
|
|||
{% assign numArticles = category[1].maptopics | obj_size %}
|
||||
<li class="mb-3 {% if forloop.index > maxArticles %}d-none{% endif %}">
|
||||
<a href="{{ maptopic[1].href }}">
|
||||
{{ maptopic[1].title }}
|
||||
</a>
|
||||
{{ maptopic[1].title }}<!--
|
||||
--></a>
|
||||
<small class="color-text-secondary d-inline-block">
|
||||
• {{ maptopic[1].articles | obj_size }} articles
|
||||
</small>
|
||||
</li>
|
||||
{% if numArticles > maxArticles %}
|
||||
<button class="js-all-articles-show-more btn-link Link--secondary">Show {{ numArticles | minus: maxArticles }} more {% octicon "chevron-up" class="v-align-text-bottom" %}</button>
|
||||
|
|
|
@ -32,3 +32,9 @@
|
|||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% comment %}
|
||||
<small class="color-text-secondary d-inline-block">
|
||||
• {{ article.childArticles | obj_size }} articles
|
||||
</small>
|
||||
{% endcomment %}
|
||||
|
|
|
@ -44,3 +44,9 @@
|
|||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% comment %}
|
||||
<small class="color-text-secondary d-inline-block">
|
||||
• {{ article.childArticles | obj_size }} articles
|
||||
</small>
|
||||
{% endcomment %}
|
||||
|
|
Загрузка…
Ссылка в новой задаче