Deneb ReactJs documentation

Blog

Add and edit blog posts, tags and authors in Deneb React.

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

{
  "id": 1,
  "category": "Featured",
  "title": "Fitness Mantra To Live Fit Life",
  "slug": "fitness-mantra-to-live-fit-life",
  "postedOn": "July 21, 2020",
  "author": "Tortoiz",
  "blogImage": "/images/blog/01.webp",
  "featured": true,
  "smallDesc": "The short text on the blog card.",
  "blogContent": "<h2>Your heading</h2><p>Your post as HTML.</p>",
  "blogText": "Your post as plain text."
}

Add a post

  1. Copy an existing entry, including any fields below blogText, such as relatedPosts.
  2. Give it a new id and slug.
  3. Change the text and images.
  4. Keep a comma between entries, but not after the last one.

Post text

blogContent holds the post as HTML. When it’s there, the post page shows it. Because this is JSON, put a backslash before any double quote inside the HTML, like \".

Comments

See Forms and comments to turn on Disqus.