diff --git a/layout/_partial/main/post_list/post_card.ejs b/layout/_partial/main/post_list/post_card.ejs index 16a2f0d..381b5b4 100755 --- a/layout/_partial/main/post_list/post_card.ejs +++ b/layout/_partial/main/post_list/post_card.ejs @@ -90,7 +90,7 @@ function div_default() { } } } - if (post.pin) { + if (post.sticky) { el += `${icon('default:pin')}` } el += ''; diff --git a/layout/index.ejs b/layout/index.ejs index c639655..b604063 100755 --- a/layout/index.ejs +++ b/layout/index.ejs @@ -21,25 +21,9 @@ function layout_post_card(layout, post, content) { function layout_post_list(partial) { var el = ''; el += '
'; - if (is_home()) { - // pinned posts - if (page.current == 1) { - var pinned = site.posts.filter(post => post.pin != undefined).sort((config.index_generator && config.index_generator.order_by) || '-date'); - pinned.forEach((post, i) => { - el += layout_post_card('post', post, partial(post)); - }); - } - // unpinned posts - page.posts.each(function(post){ - if (post.pin == undefined) { - el += layout_post_card('post', post, partial(post)); - } - }) - } else { - page.posts.each(function(post){ - el += layout_post_card('post', post, partial(post)); - }) - } + page.posts.each(function(post){ + el += layout_post_card('post', post, partial(post)); + }) el += '
'; return el; }