Permalink
Browse files

update github repo

  • Loading branch information...
nguyenvanduocit committed Jan 3, 2019
1 parent a7c6a59 commit 4bf8f0389031a6664b6c484bdfa01a18d641d790
@@ -165,5 +165,8 @@ graph TB
## gh-repos
{{< gh-repos url="https://api.github.com/repos/12bitvn/12bit.vn" >}}
```markdown
{{</*gh-repos vuejs vue*/>}}
```

{{<gh-repos vuejs vue>}}
@@ -483,6 +483,25 @@ figcaption{

.oembed-card{
margin-bottom: 1.5rem;
padding: 10px 0 0 0;
box-shadow: 0 1px 4px rgba(0,0,0,.04), inset 0 0 0 1px rgba(0,0,0,.09);
padding: 0;
/*box-shadow: 0 1px 4px rgba(0,0,0,.04), inset 0 0 0 1px rgba(0,0,0,.09);*/
.embedly-card-hug{
margin: 0 auto !important;
}
}

table {
border: solid 1px #acd8ee;
border-collapse: collapse;
border-spacing: 0;
}
table th {
border: solid 1px #ffffff;
background-color: #DDEFEF;
padding: 10px;
text-align: left;
}
table tbody td {
border: solid 1px #DDEEEE;
padding: 10px;
}
@@ -25,6 +25,17 @@
<script src="{{ $highlightJs.RelPermalink }}" async defer onload="hljs.initHighlightingOnLoad();"></script>

{{ if ($.Page.Scratch.Get "include_embedly") "true" }}
<style class="embedly-css">
.pair-bd .art-bd{
padding: 0;
}
.card .hdr {
display:none;
}
.card .brd {
display:none;
}
</style>
<script src="//cdn.embedly.com/widgets/platform.js" async defer></script>
{{ end }}

@@ -1,5 +1,40 @@
<ul class="ghStarred">
{{ $url := .Get "url" }}
{{ range getJSON $url }}
{{ end }}
</ul>
<div class="gh-repo">
{{ $username := .Get 0 }}
{{ $repoName := .Get 1 }}
{{ $url := print "https://api.github.com/repos/" $username "/" $repoName}}
{{ $repo := getJSON $url }}
<table>
<tr>
<th>Name</th>
<td><a href="{{ $repo.html_url }}" target="_blank">{{ $repo.full_name }}</a></td>
</tr>
<tr>
<th>Description</th>
<td>{{ $repo.description }}</td>
</tr>
<tr>
<th>Owner</th>
<td><a href="{{ $repo.owner.url }}" target="_blank">{{ $repo.owner.login }}</a></td>
</tr>
<tr>
<th>Forks</th>
<td><a href="{{ $repo.forks_url }}" target="_blank">{{ $repo.forks_count }}</a></td>
</tr>
<tr>
<th>Watchers</th>
<td>{{ $repo.watchers }}</td>
</tr>
<tr>
<th>Open issues</th>
<td>{{ $repo.open_issues_count }}</td>
</tr>
<tr>
<th>Updated at</th>
<td>{{ $repo.updated_at }}</td>
</tr>
<tr>
<th>License</th>
<td>{{ $repo.license.name }}</td>
</tr>
</table>
</div>

0 comments on commit 4bf8f03

Please sign in to comment.