The Bloggify article class.
# Using npm
npm install --save bloggify-article
# Using yarn
yarn add bloggify-article
const BloggifyArticle = require("bloggify-article");
let home = new BloggifyArticle({
title: "Hello World!"
, content: "Hey there!"
, main_image: "/foo.png"
, author: "Johnny"
, id: 10
, url: "/blog/{id}-{slug}"
});
console.log(home);
// BloggifyArticle {
// title: 'Hello World!',
// slug: 'hello-world',
// url: '/blog/10-hello-world',
// content: 'Hey there!',
// raw_content: 'Hey there!',
// main_image: '/foo.png',
// id: 10,
// author: 'Johnny',
// date: null }
There are few ways to get help:
- Please post questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.
- For bug reports and feature requests, open issues. 🐛
BloggifyArticle The Bloggify article class.
- Object
data
: The page data:metadata
(Object):id
(String): The article id.author
(String): The article author.date
(String|Date): The article date.
id
(String): The page id. If provided, has greater priority than themetadata.id
.author
(String): The page author. If provided, has greater priority than themetadata.author
.
Note: The BloggifyArticle
is extended from the BloggifyPage
class.
Have an idea? Found a bug? See how to contribute.
If you are using this library in one of your projects, add it in this list. ✨
bloggify-viewer