This repository has been archived by the owner on Aug 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.mokkf
62 lines (62 loc) · 3.33 KB
/
index.mokkf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
layout: main
title: "Dirout"
permalink: "index.html"
markdown: false
---
<div class="container">
<div class="row">
{% assign urls = '' | split: '' %}
{% assign repository_date_rfc_3339 = collections["repos"] | map: 'date' | sort: "rfc_3339" %}
{% for repository_date in repository_date_rfc_3339 reversed %}
{% for repository in collections["repos"] %}
{% if repository.date.rfc_3339 == repository_date.rfc_3339 %}
{% unless urls contains repository.url %}
{% assign urls = urls | push: repository.url %}
<div class="card col">
<a href="{{ repository.data.html_url }}">
{% if repository.data.archived %}
<div class="card-header"><span data-octicon="archive"></span> Archived</div>
{% endif %}
<div class="card-body">
{% if repository.data.fork %}
<h5 class="card-title"><span data-octicon="repo-forked"></span> {{ repository.data.title }}</h5>
{% else %}
<h5 class="card-title"><span data-octicon="repo"></span> {{ repository.data.title }}</h5>
{% endif %}
<p class="card-text">{{ repository.data.description }}</p>
</a>
<div class="repo-buttons">
<button type="button" class="btn" onclick="window.location.href='{{ repository.data.html_url }}/stargazers'">
<span data-octicon="star"></span>Stars <span class="badge bg-secondary">{{ repository.data.stargazers_count }}</span>
</button>
{% if repository.data.has_issues %}
<button type="button" class="btn" onclick="window.location.href='{{ repository.data.html_url }}/issues'">
<span data-octicon="issue-opened"></span>Issues <span class="badge bg-secondary">{{ repository.data.open_issues_count }}</span>
</button>
{% endif %}
</div>
<div class="card-footer">
{% if repository.data.has_license %}
<p class="card-text">
<small class="text-muted">
<span data-octicon="law"></span>
<a href="https://choosealicense.com/licenses/{{ repository.data.license_id }}"> {{ repository.data.license_name }}</a>
</small>
</p>
{% endif %}
<p class="card-text">
<small class="text-muted">
<span data-octicon="clock"></span> Last updated {{ repository.date.rfc_2822 }}
</small>
</p>
</div>
</div>
</div>
</a>
{% endunless %}
{% endif %}
{%- endfor -%}
{%- endfor -%}
</div>
</div>