Skip to content

Commit

Permalink
add subtitle
Browse files Browse the repository at this point in the history
  • Loading branch information
agneym committed Sep 15, 2019
1 parent 7ce5a5c commit 954b471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generate-html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function generateHtml(prop: Partial<IProps>) {
<script type="module" rel="preload" src="https://unpkg.com/@agney/og-image-element@0.1.0"></script>
</head>
<body>
<og-image-element .subtitle=${prop.subtitle || ""}>
<og-image-element subtitle=${prop.subtitle || ""}>
${
prop.imageUrl
? `<img slot="image" src="${prop.imageUrl}" height="100%" />`
Expand Down

0 comments on commit 954b471

Please sign in to comment.