Permalink
Browse files

update shortcode

  • Loading branch information...
nguyenvanduocit committed Jan 3, 2019
1 parent d86d957 commit 4289acb5b8fa4994f2677c3e0dc17103078e282f
@@ -163,3 +163,7 @@ graph TB
{{< oembed url="https://open.spotify.com/playlist/37i9dQZEVXbc3uyDjJcA7l" title="ahhi">}}
## gh-repos
{{< gh-repos url="https://api.github.com/repos/12bitvn/12bit.vn" >}}
@@ -383,8 +383,8 @@ sub, sup {
/***** PAGINATION *****/
.pagination{
list-style: none;
margin: 0;
padding: 0;
margin: 60px 0 0;
display: flex;
justify-content: center;
align-items: center;
@@ -482,6 +482,7 @@ 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);
}
@@ -1,7 +1,7 @@
{{ partial "header" . }}
<main id="content" class="site-content list">
<header>
<h1></h1>
<h1>Tag: {{ .Title -}}</h1>
</header>
<div class="tils">
{{ range .Paginator.Pages }}
@@ -1,5 +1,7 @@
<h1 class="article__title"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
<div class="article__meta">
<header>
<h1 class="article__title"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
<div class="article__meta">
<a href="https://github.com/{{ .Params.author.github }}" class="sub-color">{{ .Params.author.name }}</a> /
<time class="article__date">{{ .Date.Format "January 02, 2006" }}</time>
</div>
</div>
</header>
@@ -1,5 +1,6 @@
{{ if .GitInfo }}
<section class="gitinfo single-section">
<p>Last update on {{ .Lastmod.Format "January 02, 2006" }} by <a href="https://github.com/12bitvn/12bit.vn/commit/{{ .GitInfo.Hash }}" target="_blank">{{ .GitInfo.AuthorName }}</a></p>
{{ $commit := getJSON "https://api.github.com/repos/12bitvn/12bit.vn/git/commits/" .GitInfo.Hash }}
<p>Last commit by {{ $commit.committer.name }} on {{ $commit.committer.date| dateFormat "January 02, 2006" }}: <a href="{{$commit.html_url}}" target="_blank">open on Github</a></p>
</section>
{{ end }}
@@ -0,0 +1,5 @@
<ul class="ghStarred">
{{ $url := .Get "url" }}
{{ range getJSON $url }}
{{ end }}
</ul>

0 comments on commit 4289acb

Please sign in to comment.