Class: BlogPostDrop
- Inherits:
-
Liquid::Simplero::Drop
- Object
- Liquid::Drop
- Liquid::Simplero::Drop
- BlogPostDrop
- Includes:
- CommentableDropConcerns, NotificationSettingProvidingDropConcern, ReactableDropConcerns, ShareableDropConcerns
- Defined in:
- app/drops/blog_post_drop.rb
Overview
BlogPostDrop represents a blog post. It's available as the top-level blog_post
on a blog post page, or as a collection on BlogCategoryDrop.
Instance Method Summary collapse
- #allow_comment_attachments? ⇒ Boolean
- #allow_comments? ⇒ Boolean
- #asset ⇒ AssetDrop
- #body ⇒ String
-
#canonical_url ⇒ Object
Returns the non custom URL generated with slug, used internally to link a few actions related to blog posts.
- #categories ⇒ Array<BlogCategoryDrop>
- #category ⇒ BlogCategoryDrop
- #category_ids ⇒ Array
-
#comments_type ⇒ Object
Returns allowed type of comments(plain, rich, rich_without_attachments) @return [String].
- #current_category_context ⇒ Object
- #id ⇒ Integer
- #meta_data ⇒ MetaDataDrop
-
#next_post ⇒ BlogPostDrop
Returns the first blog post published after this post.
- #notification_setting ⇒ NotificationSettingDrop
- #poster ⇒ UserDrop
-
#preview_text ⇒ String
Returns search engine description if it is not blank and user prefered to show it instead body as preview text..
-
#previous_post ⇒ BlogPostDrop
Returns the first blog post published before this post.
- #published_at ⇒ DateTime
- #show_next_prev_posts? ⇒ Boolean
- #title ⇒ String
- #total_views ⇒ Integer
- #unique_views ⇒ Integer
- #url ⇒ String
Methods inherited from Liquid::Simplero::Drop
Instance Method Details
#allow_comment_attachments? ⇒ Boolean
#allow_comments? ⇒ Boolean
#asset ⇒ AssetDrop
#body ⇒ String
#canonical_url ⇒ Object
Returns the non custom URL generated with slug, used internally to link a few actions related to blog posts.
@return [String]
#categories ⇒ Array<BlogCategoryDrop>
#category ⇒ BlogCategoryDrop
#category_ids ⇒ Array
#comments_type ⇒ Object
Returns allowed type of comments(plain, rich, rich_without_attachments)
@return [String]
#current_category_context ⇒ Object
#id ⇒ Integer
#meta_data ⇒ MetaDataDrop
#next_post ⇒ BlogPostDrop
Returns the first blog post published after this post
#notification_setting ⇒ NotificationSettingDrop
#poster ⇒ UserDrop
#preview_text ⇒ String
Returns search engine description if it is not blank and user prefered to show it instead body as preview text.. or body
#previous_post ⇒ BlogPostDrop
Returns the first blog post published before this post