Include code and checkin posts in all post lists
This commit is contained in:
@@ -142,7 +142,7 @@ module Main
|
|||||||
|
|
||||||
def posts_for_timemachine(date:)
|
def posts_for_timemachine(date:)
|
||||||
posts
|
posts
|
||||||
.where(post_type: "post")
|
.where(post_type: ["post", "code", "checkin"])
|
||||||
.where(published_at: TimeMath.day.floor(date)...TimeMath.day.advance(date, +1))
|
.where(published_at: TimeMath.day.floor(date)...TimeMath.day.advance(date, +1))
|
||||||
.to_a
|
.to_a
|
||||||
end
|
end
|
||||||
@@ -156,7 +156,7 @@ module Main
|
|||||||
|
|
||||||
def all_posts
|
def all_posts
|
||||||
posts
|
posts
|
||||||
.where(post_type: ["post", "bookmark"])
|
.where(post_type: ["post", "code", "bookmark"])
|
||||||
.published
|
.published
|
||||||
.order(Sequel.desc(:published_at))
|
.order(Sequel.desc(:published_at))
|
||||||
.to_a
|
.to_a
|
||||||
@@ -164,7 +164,7 @@ module Main
|
|||||||
|
|
||||||
def for_rss
|
def for_rss
|
||||||
posts
|
posts
|
||||||
.where(post_type: ["post", "bookmark"], location: nil)
|
.where(post_type: ["post", "code", "bookmark"], location: nil)
|
||||||
.exclude(name: nil)
|
.exclude(name: nil)
|
||||||
.published
|
.published
|
||||||
.combine(:tags)
|
.combine(:tags)
|
||||||
|
Reference in New Issue
Block a user