iris-cms-2
v1.0.0
Published
Iris Blog integration
Downloads
72
Maintainers
Readme
iris-cms
Loads a blog from your Iris Account to your website.
How to install using HTML
HTML
<div id="blog">
</div>
<script type="module">
import Iris from "https://cdn.jsdelivr.net/npm/iris-cms/index.js";
const options = {
apiKey: 'YOUR_API_KEY_HERE',
elementId: 'blog'
}
let iris = new Iris(options)
</script>
<!-- Gets the latest version of Iris and builds the content inside the blog div -->
How to install using NPM
$ npm install iris-cms
HTML
<div id="blog">
</div>
Javascript
import Iris from "iris-cms";
const options = {
apiKey: 'YOUR_API_KEY_HERE',
elementId: 'blog'
}
let iris = new Iris(options);
//=> Builds the content inside the blog div