Note: *
fields are required
- id* : Id of post
- slug* : Unique identifier with dashed format of post title(i.e. this-is-post-slug)
- title* : Title of post
- summary* : Summary of Post
- content* : Content of Post in HTML format
- toc : Table of Content in HTML format
- reading_time* : Total reading time in minutes
- published_on* : Published date of post
- is_published : Post is considered as
Draft
, if this field is false. - image_url* : ImageUrl of post
- alternative_text : Alternative text of Image
- author* : Author details of post
{ username name bio image alt_text }
- recommended_posts : List of recommended posts if any
- tag : List of tags
{ slug name }
- Alert
- Author detail
- Blog content
- Blog detail
- Blog detail header
- Blog footer
- Blog list
- Blog tile
- Featured blog tile
- Post list for tag and author UI
- Recommended posts
- Table of contents
- Tags
- Unsubscribe
This component is used for showing alerts. In this library it is used by BlogDetailHeader
- :message="message" (
required
): Message to be shown on alert
<Alert :message="message" />
This component shows detail of author
- :author="author" (
required
): Object of author containing author's fields from post's object
<AuthorDetail :author="author" />
This component will render blog's content
- :content="content"(
required
): Content in html format.
Note: If you want to use this component directly, you should do some html refactoring for UI. You can take reference from blog detail component.
<BlogContent :content="content" />
This component contains a whole blog detail page including BlogHeader
, TableOfContents
, RecommendedPosts
, Tags
, AuthorDetails
, CTA
and Footer
- :post="post"(
required
): Post details - :websiteUrl="websiteUrl": For sharing on social media, you can pass your website's url. Required for Header and Footer
- :contact-api-url="your-contact-api-url": Required if you want to add CTA form component in your blog detail.
- :recaptcha-key="recaptcha-key": Requried for protecting CTA forms from malicious requests.
<BlogDetail
:post="post"
:websiteUrl="your-website-url"
:contact-api-url="your-contact-api-url"
:recaptcha-key="recaptcha-key"
/>
This component contains Blog's prior details along with social media sharing.
- :post="post"(
required
): Post details - :websiteUrl="websiteUrl": For sharing on social media, you can pass your website's url.
<BlogDetailHeader :post="post" :websiteUrl="your-website-url" />
- :socialMediaData="socialMediaData"(
required
)- JSON object of your social media handles
const socialMediaData = { facebook: your-facebook-url, instagram: your-instagram-url, twitter: your-twitter-url, blog: your-blog-url, linkedin: your-linkedin-url, youtube: your-youtube-url, };
- JSON object of your social media handles
- :apiUrl="subscription-api-url"(
required
): Subscription api url - :companyName="companyName": your companyName
<BlogFooter
:social-media-data="socialMediaData"
:api-url="subscription-api-url"
:company-name="your-company-name"
/>
-
:posts="posts" (
required
): posts to be displayed -
:featurePosts="featuredPosts": featured blog posts showing on the top of page
-
:count="count": Number of posts for UI adjustment
-
:status="status": Status of API response
<BlogList
:posts="posts"
:featurePosts="featurePosts"
:count="count"
:status="status"
/>
Single blog card
- :post="post"(
required
): Post details - :count="count": Total number of posts. Default value is 1.
- :index="index": blog index from for loop. Default is 0.
<BlogTile :post="post" :count="count" :index="index" />
Single featured blog card
- :post="post"(
required
): Featured post details
<FeaturedBlogTile :post="post" />
- :slug="slug"(
required for PostList
): Slug or id of tag - :posts="posts"(
required
): List of posts for given tag or author
<PostList :slug="slug" :posts="posts" />
<AuthorPosts :posts="posts" />
- :posts="posts"(
required
): Recommended posts list
<RecommendedPosts :posts="posts" />
- :index-content="newIndexContent"(
required
): Index content in HTML form. - :header-height="headerHeight": Height of the top header. Required for scrolling behaviour if this component is used with
BlogContent
. Default is 0. - :content-ref="contentRef": Reference of blog content. Required for scrolling behaviour if this component is used with
BlogContent
.
Note: If you want to use this component directly, you should do some html refactoring for UI. You can take reference from blog detail component.
<TableOfContents
:index-content="newIndexContent"
:header-height="headerHeight"
:content-ref="contentRef"
/>
- :tags="tags"(
required
): Tag list
<TagSection :tags="tags" />
This component contains email tempalate of Unsubscription.
- :company-title="your-company-name"(
required
): Your company's name - :api-url="unsubscribe-api-url": API url to unsubscribe
<Unsubscribe :company-title="your-company-name" :api-url="unsubscribe-api-url" />