bloggify-article
v1.0.4
Published
The Bloggify article class.
Downloads
4
Readme
bloggify-article
The Bloggify article class.
:cloud: Installation
# Using npm
npm install --save bloggify-article
# Using yarn
yarn add bloggify-article
:clipboard: Example
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 }
:question: Get Help
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. :bug:
:memo: Documentation
bloggifyPage(data)
BloggifyArticle The Bloggify article class.
Params
- 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.
:yum: How to contribute
Have an idea? Found a bug? See how to contribute.
:dizzy: Where is this library used?
If you are using this library in one of your projects, add it in this list. :sparkles:
bloggify-viewer