Skip to content

Commit

Permalink
Update cigaradvisor/blocks/article-teaser/article-teaser.js
Browse files Browse the repository at this point in the history
Co-authored-by: Bryan Stopp <[email protected]>
  • Loading branch information
kailasnadh790 and bstopp authored Dec 6, 2023
1 parent 1a02181 commit f135093
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cigaradvisor/blocks/article-teaser/article-teaser.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ export default async function decorate(block) {
const articleCategory = articleInfo.category;
const articleCategoryInfo = categoryListData.find((obj) => obj.category === articleCategory);
const articleCategoryLink = articleCategoryInfo.categoryLink;
const formattedDate = formatDate(articleInfo.publishedDate).split('|')[0];
const datetimeAttr = formatDate(articleInfo.publishedDate).split('|')[1];
const [formattedDate, datetimeAttr] = formatDate(articleInfo.publishedDate).split('|');
const authorNameHyphenSeparated = articleInfo.author.split(' ').join('-');
const authorLink = `${window.hlx.codeBasePath}/author/drafts/${authorNameHyphenSeparated.toLowerCase()}`;
block.innerHTML = `
Expand Down

0 comments on commit f135093

Please sign in to comment.