fix micro blog
This commit is contained in:
parent
462080bd33
commit
b7ed2ae681
1 changed files with 10 additions and 1 deletions
|
@ -29,7 +29,16 @@
|
|||
<div class="section">
|
||||
<div class="section-title">μblog</div>
|
||||
<div class="posts">
|
||||
{{ range where site.RegularPages "Type" "in" site.Params.microBlogSection}}
|
||||
{{ range where (where site.RegularPages "Type" "in" site.Params.microBlogSection) "Params.pinned" true }}
|
||||
<div class="post">
|
||||
<div class="meta pinned"> <i class="fas fa-thumbtack"></i> pinned </div>
|
||||
<div class="post-content">
|
||||
{{.Content}}
|
||||
</div>
|
||||
<div class="meta post-footer"> <span>{{.Date.Format "Jan 2 2006 03:04 UTC-07"}}</span> <a href="{{.URL}}"><i class="fas fa-link"></i> link</a></div>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ range where (where site.RegularPages "Type" "in" site.Params.microBlogSection) "Params.pinned" "ne" true}}
|
||||
<div class="post">
|
||||
{{if ne .Params.pinned nil}}
|
||||
<div class="meta pinned"> <i class="fas fa-thumbtack"></i> pinned </div>
|
||||
|
|
Loading…
Reference in a new issue