forked from github/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request github#4416 from github/repo-sync
repo sync
- Loading branch information
Showing
8 changed files
with
119 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{% assign category = siteTree[currentLanguage][currentVersion].products[currentProduct].categories[currentPath] %} | ||
|
||
{% assign maxArticles = 10 %} | ||
|
||
<div class="py-6 all-articles-list"> | ||
<h2 class="font-mktg mb-4">{{ category.title }} docs</h2> | ||
|
||
<div class="d-flex gutter flex-wrap"> | ||
{% for xmaptopic in category.maptopics %} | ||
{% assign maptopic = xmaptopic[1] %} | ||
{% unless maptopic.hidden %} | ||
<div class="col-12 col-lg-4 mb-6 height-full"> | ||
<h4 class="mb-3"><a href="{{ maptopic.href }}">{{ maptopic.title }}</a></h4> | ||
<ul class="list-style-none"> | ||
{% for xarticle in maptopic.articles %} | ||
{% assign article = xarticle[1] %} | ||
<li class="mb-3 {% if forloop.index > maxArticles %}d-none{% endif %}"> | ||
<a href="{{ article.href }}"> | ||
{{ article.title }} | ||
</a> | ||
</li> | ||
{% endfor %} | ||
{% assign numArticles = maptopic.childArticles | obj_size %} | ||
{% if numArticles > maxArticles %} | ||
<button class="js-all-articles-show-more btn-link link-gray">Show {{ numArticles | minus: maxArticles }} more {% octicon "chevron-up" class="v-align-text-bottom" %}</button> | ||
{% endif %} | ||
</ul> | ||
</div> | ||
{% endunless %} | ||
{% endfor %} | ||
</div> | ||
</div> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters