Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports = function reading_time(options) {// eslint-disable-line camelcase
options = options || {};
options.hash = options.hash || {};
// only calculate reading time for posts
if (!schema.isPost(this)) {
return null;
}
let readingTime = calculateReadingTime(this, options.hash);
return new SafeString(readingTime);
};
module.exports = function reading_time(options) {// eslint-disable-line camelcase
options = options || {};
options.hash = options.hash || {};
// only calculate reading time for posts
if (!schema.isPost(this)) {
return null;
}
let readingTime = calculateReadingTime(this, options.hash);
return new SafeString(readingTime);
};
const PostCard = ({ post }) => {
const url = `/${post.slug}/`
const readingTime = readingTimeHelper(post)
return (
<header>
{post.feature_image &&
<div style="{{"></div>}
{post.tags && <div> </div>}
{post.featured && <span>Featured</span>}
<h2>{post.title}</h2>
</header>
<section>{post.excerpt}</section>
<footer>
<div>
<div></div></div></footer>