Skip to content
This repository was archived by the owner on Feb 5, 2022. It is now read-only.

Commit 0261399

Browse files
committed
Added a manual override od metadata based on featured image from butter
1 parent eadec2a commit 0261399

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/app-blog-card/app-blog-card.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export class AppBlogCard {
1111

1212
componentDidLoad() {
1313
console.log('blog data', this.blogPost);
14+
document.querySelectorAll('meta[property="og:image"]')[0].setAttribute('content', this.blogPost.featured_image); //set opengraph metadata to match Butter CMS featured image
1415
}
1516

1617
render() {

0 commit comments

Comments
 (0)