DEPRECATED: to use this, please refer to Blogium-Service/examples/vanilla
<script src="./dist/blogium.js"></script>
yarn add blogium
or
npm i --save blogium
bower i --save blogium
Alternatively, you can always download a .zip file
After including the script anyway suited you best, just instantiate Blogium
with the desired set of options
const blog = new Blogium(options);
Blogium fires success
and error
event for the post request, you can listen to them:
blog.on('blogium.success', response => { console.info('I have posts!', response) });
blog.on('blogium.error', response => { console.error('Oops, something has gone wrong', response) });
You can pass a string to what will be considered by Blogium your root host.
Default: document.location.host
If you want to set all outbound links (not directed to your host) as _blank
.
Default: true
The Medium handler to fetch the RSS Feed from.
Default: @Medium
id
to the more vouchers button.
Default: #moreBtn
class
to the element(s) posts will be appended in.
Default: .mediumWrap
Weather to use the default template to list the posts or handle the data by yourself
Default: true
Number of posts to be listed on each view. (infinite scroll is always on, posts are all cached on first request)
Default: 5
Show Medium categories for each post.
Default: true