mirror of
https://github.com/zhigang1992/probot.github.io.git
synced 2026-01-12 17:33:05 +08:00
Use app include for homepage
This commit is contained in:
17
index.html
17
index.html
@@ -33,22 +33,7 @@ layout: default
|
||||
<div class="d-md-flex flex-wrap gutter flex-auto">
|
||||
{% assign apps = site.apps | sort: 'stars' | reverse %}
|
||||
{% for app in apps limit:6 %}
|
||||
<div class="col-lg-4 col-md-6 mb-3 mt-3">
|
||||
<a href="{{ app.url }}" class="d-flex flex-column bg-white rounded-1 box-shadow border text-inherit no-underline" style="height:100%">
|
||||
<h3 class="h4 px-3 pt-3">{{ app.title }}</h3>
|
||||
<p class="text-gray lh-condensed px-3 pb-3">{{ app.description }}</p>
|
||||
<div class="text-gray-light pl-3 pr-2 py-2 bg-gray-light border-top" style="margin-top: auto;">
|
||||
<div class="d-flex flex-row">
|
||||
<div class="col-3 tooltipped tooltipped-s" aria-label="{{ app.stars }} stars">{% octicon star heigh:16 class:"v-align-middle" %} <span class="">{{ app.stars }}</span></div>
|
||||
<div class="col-9 text-right">
|
||||
{% for author in app.authors %}
|
||||
<img class="avatar tooltipped tooltipped-s" alt="Made by {{ author }}" aria-label="Made by {{ author }}" height="24" src="https://github.com/{{ author }}.png">
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
{% include app.html app=app %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user