Ghost/ghost/admin/lib/koenig-editor/addon/components/koenig-card-embed/nft.hbs
Fabien O'Carroll 0f839a9d27 Added child component for NFT Embeds
refs https://github.com/TryGhost/Team/issues/1211

We've moved the rendering of HTML outside of the OEmbed endpoint - so
the Admin needs to handle constructing the HTML from the OEmbed response
metadata.
2021-11-15 11:02:27 +02:00

18 lines
737 B
Handlebars

<a href="{{this.payload.url}}" class="kg-nft-card">
<img class="kg-nft-image" src="{{this.payload.metadata.image_url}}">
<div class="kg-nft-metadata">
<div class="kg-nft-header">
<h4 class="kg-nft-title"> {{this.payload.metadata.title}} </h4>
</div>
<div class="kg-nft-creator">
Created by <span class="kg-nft-creator-name">{{this.payload.metadata.author_name}}</span>
{{#if this.payload.metadata.author_name}}
&bull; {{this.payload.metadata.author_name}}
{{/if}}
</div>
{{#if this.payload.metadata.description}}
<p class="kg-nft-description">{{this.payload.metadata.description}}</p>
{{/if}}
</div>
</a>