diff options
author | otis <xiaohei.zyx@gmail.com> | 2019-11-21 10:22:22 +0300 |
---|---|---|
committer | Zhao XiaoHei <xiaohei.zyx@gmail.com> | 2019-11-21 10:23:10 +0300 |
commit | 23ebe2b6fac1c74039cfa2450a260401207c352e (patch) | |
tree | 7e76d7dc7e5494c6a1971c8331d9959cb0d2607d /layouts | |
parent | 72cc5d173b03d5f6964bd425e2850cbeabacec9e (diff) |
add card post
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/card-post.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/layouts/partials/card-post.html b/layouts/partials/card-post.html new file mode 100644 index 0000000..82a6b79 --- /dev/null +++ b/layouts/partials/card-post.html @@ -0,0 +1,21 @@ +<article class="panel panel-default hover-shadow hover-grow" itemscope itemtype="http://schema.org/BlogPosting"> + <div class="panel-body"> + <div class="article-meta"> + <time datetime="{{ .Date }}" + itemprop="datePublished">{{- .Date.Format (.Site.Params.dateFormatToUse | default "2006-01-02") }}</time> + </div> + <h3 class="article-title" itemprop="name"> + <a class="article-link" href="{{- .Permalink }}">{{- .Title }}</a> + </h3> + </div> + {{- with .Params.tags }} + <div class="panel-footer"> + {{- range first 3 . }} + <a href="{{ "tags/" | absURL }}{{ . | urlize }}" class="label label-default mb">{{ . }}</a> + {{- end }} + {{- if gt (len .) 3 }} + <span class="label label-default mb">ยทยทยท</span> + {{- end }} + </div> + {{- end }} +</article>
\ No newline at end of file |