Class: BlogPostDrop

Inherits:
Liquid::Simplero::Drop show all
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

Methods inherited from Liquid::Simplero::Drop

#dom_id

Instance Method Details

#allow_comment_attachments? ⇒ Boolean

Returns:

  • (Boolean)

#allow_comments? ⇒ Boolean

Returns:

  • (Boolean)

#asset ⇒ AssetDrop

Returns:

#body ⇒ String

Returns:

  • (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>

Returns:

#category ⇒ BlogCategoryDrop

Returns:

#category_ids ⇒ Array

Returns:

  • (Array)

#comments_type ⇒ Object

Returns allowed type of comments(plain, rich, rich_without_attachments)

@return [String]

#current_category_context ⇒ Object

#id ⇒ Integer

Returns:

  • (Integer)

#meta_data ⇒ MetaDataDrop

Returns:

#next_post ⇒ BlogPostDrop

Returns the first blog post published after this post

Returns:

#notification_setting ⇒ NotificationSettingDrop

#poster ⇒ UserDrop

Returns:

#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

Returns:

  • (String)

#previous_post ⇒ BlogPostDrop

Returns the first blog post published before this post

Returns:

#published_at ⇒ DateTime

Returns:

  • (DateTime)

#show_next_prev_posts? ⇒ Boolean

Returns:

  • (Boolean)

#title ⇒ String

Returns:

  • (String)

#total_views ⇒ Integer

Returns:

  • (Integer)

#unique_views ⇒ Integer

Returns:

  • (Integer)

#url ⇒ String

Returns:

  • (String)