fix micro blog

This commit is contained in:
saadnpq 2020-04-13 12:01:59 +02:00
parent 462080bd33
commit b7ed2ae681

View file

@ -29,7 +29,16 @@
<div class="section"> <div class="section">
<div class="section-title">μblog</div> <div class="section-title">μblog</div>
<div class="posts"> <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"> <div class="post">
{{if ne .Params.pinned nil}} {{if ne .Params.pinned nil}}
<div class="meta pinned"> <i class="fas fa-thumbtack"></i> pinned </div> <div class="meta pinned"> <i class="fas fa-thumbtack"></i> pinned </div>