diff options
author | saadnpq <saadnpq@localhost.localdomain> | 2020-04-13 13:01:59 +0300 |
---|---|---|
committer | saadnpq <saadnpq@localhost.localdomain> | 2020-04-13 13:01:59 +0300 |
commit | b7ed2ae6812614f6259c8c6f87e030d4a30f7e0b (patch) | |
tree | 3c8b3a31dc951b6a7f1beb6c8d235d31ec72dfb5 | |
parent | 462080bd3360fd26a9649e8897e4d3d2bbbd3026 (diff) |
fix micro blog
-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> |