diff options
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html index 094ac10..416d80b 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -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> |