// FIXME: sqlite-backed instances don't include ellipsis on truncated titles
// FIXME: sqlite-backed instances don't include ellipsis on truncated titles
rows,err:=db.Query("SELECT id, slug, title, "+db.clip("content",80)+", pinned_position FROM posts WHERE collection_id = ? AND pinned_position IS NOT NULL ORDER BY pinned_position ASC",coll.ID)
timeCondition:=""
if!includeFuture{
timeCondition="AND created <= "+db.now()
}
rows,err:=db.Query("SELECT id, slug, title, "+db.clip("content",80)+", pinned_position FROM posts WHERE collection_id = ? AND pinned_position IS NOT NULL "+timeCondition+" ORDER BY pinned_position ASC",coll.ID)