Feat plugin tweets medias (#164)
This commit is contained in:
@@ -25,9 +25,23 @@
|
||||
</div>
|
||||
<% if (plugins.tweets.profile) { %>
|
||||
<% if (plugins.tweets.list.length) { %>
|
||||
<% for (const {text, createdAt } of plugins.tweets.list) { %>
|
||||
<% for (const {text, createdAt, attachments} of plugins.tweets.list) { %>
|
||||
<div class="tweet">
|
||||
<%- text %>
|
||||
<% if (attachments) { %>
|
||||
<div class="attachments">
|
||||
<% for (const {image, title, description, website} of attachments) { %>
|
||||
<div style="background-image: url('<%= image %>');">
|
||||
<% if (title) { %>
|
||||
<div class="infos">
|
||||
<div class="title"><%= title %></div>
|
||||
<div class="description"><%= description %></div>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
<% } %>
|
||||
<div class="date"><%= createdAt %></div>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
Reference in New Issue
Block a user