@skhemata/skhemata-blog
Version:
Skhemata Blog Web Component. This web component provides several sub components in addition to main component, allowing featured blogs, blog listing and blog post display.
41 lines (36 loc) • 850 B
HTML
<html lang="en-GB">
<head>
<meta charset="utf-8">
<style>
body {
background: #fafafa;
}
</style>
</head>
<body>
<div id="demo"></div>
<script type="module">
import { html, render } from '@skhemata/skhemata-base';
import '../dist/skhemata-blog.js';
const apiWordpress = {
// url: 'https://wp.devradius.com/wp-json/wp/v2'
url: 'https://wp.skhemata.com/wp-json/wp/v2'
}
// .apiWordpress=${apiWordpress}
render(
html`
<skhemata-blog
blog-title="DevRadius Blog"
blog-page-path="demo"
blog-post-path="post"
posts-per-page="10"
api-wordpress='{"url": "https://wp.skhemata.com/wp-json/wp/v2"}'
>
</skhemata-blog>
`,
document.querySelector('#demo')
);
</script>
</body>
</html>