зеркало из 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] %}
|
{% assign article = xarticle[1] %}
|
||||||
<li class="mb-3 {% if forloop.index > maxArticles %}d-none{% endif %}">
|
<li class="mb-3 {% if forloop.index > maxArticles %}d-none{% endif %}">
|
||||||
<a href="{{ article.href }}">
|
<a href="{{ article.href }}">
|
||||||
{{ article.title }}
|
{{ article.title }}<!--
|
||||||
</a>
|
--></a>
|
||||||
|
{% comment %}
|
||||||
|
<small class="color-text-secondary d-inline-block">
|
||||||
|
• {{ article.childArticles | obj_size }} articles
|
||||||
|
</small>
|
||||||
|
{% endcomment %}
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% assign numArticles = maptopic.childArticles | obj_size %}
|
{% assign numArticles = maptopic.childArticles | obj_size %}
|
||||||
|
|
|
@ -17,8 +17,11 @@
|
||||||
{% assign numArticles = category[1].maptopics | obj_size %}
|
{% assign numArticles = category[1].maptopics | obj_size %}
|
||||||
<li class="mb-3 {% if forloop.index > maxArticles %}d-none{% endif %}">
|
<li class="mb-3 {% if forloop.index > maxArticles %}d-none{% endif %}">
|
||||||
<a href="{{ maptopic[1].href }}">
|
<a href="{{ maptopic[1].href }}">
|
||||||
{{ maptopic[1].title }}
|
{{ maptopic[1].title }}<!--
|
||||||
</a>
|
--></a>
|
||||||
|
<small class="color-text-secondary d-inline-block">
|
||||||
|
• {{ maptopic[1].articles | obj_size }} articles
|
||||||
|
</small>
|
||||||
</li>
|
</li>
|
||||||
{% if numArticles > maxArticles %}
|
{% 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>
|
<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 %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% comment %}
|
||||||
|
<small class="color-text-secondary d-inline-block">
|
||||||
|
• {{ article.childArticles | obj_size }} articles
|
||||||
|
</small>
|
||||||
|
{% endcomment %}
|
||||||
|
|
|
@ -44,3 +44,9 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% comment %}
|
||||||
|
<small class="color-text-secondary d-inline-block">
|
||||||
|
• {{ article.childArticles | obj_size }} articles
|
||||||
|
</small>
|
||||||
|
{% endcomment %}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче