Added logic for displaying author and publisher

refs https://github.com/TryGhost/Team/issues/2434
This commit is contained in:
Djordje Vlaisavljevic 2023-01-19 22:38:05 +00:00
parent 3737788d75
commit f7f2224fc5

View File

@ -16,8 +16,12 @@
<p class="gh-mention-description">{{mention.sourceExcerpt}}</p>
<div class="gh-mention-metadata">
<img src="{{mention.sourceFavicon}}" alt="{{mention.sourceSiteTitle}}" class="gh-mention-icon">
{{#if mention.sourceSiteTitle}}
<span class="gh-mention-publisher">{{mention.sourceSiteTitle}}</span>
{{/if}}
{{#if mention.sourceAuthor}}
<span class="gh-mention-author">{{mention.sourceAuthor}}</span>
{{/if}}
<span class="gh-mention-timestamp">{{gh-format-post-time mention.timestamp}}</span>
</div>
</div>