Palun ReactJs documentation

Blog

Add, edit and remove blog posts in Palun.

Blog posts are stored in src/data/blog_posts.json. Each post is one entry in the posts list:

{
  "id": 1,
  "blogCategory": "Featured",
  "title": "Fitness Mantra To Live Fit Life",
  "slug": "fitness-mantra-to-live-fit-life",
  "postedOn": "July 21, 2020",
  "author": "Tortoiz",
  "blogImage": "https://example.com/image.jpg",
  "featured": true,
  "smallDesc": "The short text on the blog card.",
  "blogText": "The full text of the post."
}

Add a post

  1. Copy an existing entry.
  2. Give it a new id, because the post’s address uses it, for example /blog_details/4.
  3. Change the other fields.
  4. Keep a comma between entries, but not after the last one.

Images

The sample images are hosted on another site. Use your own before you publish, either from a full web address or from a file in the public folder, for example /images/post.jpg.