Plugin markdown update (#211)

This commit is contained in:
Simon Lecoq
2021-04-07 14:13:56 +02:00
committed by GitHub
parent f93da199d6
commit a98530dd6b
10 changed files with 87 additions and 30 deletions

View File

@@ -0,0 +1,21 @@
<%_ if (plugins.tweets) { _%>
**[🐤 Latest tweets from @<%= plugins.tweets.username %>](https://twitter.com/<%= plugins.tweets.username %>)**
<%_ if (plugins.tweets.error) { _%>
<%= plugins.tweets.error.message _%>
<%_ } else if (plugins.tweets.list.length) { _%>
<%_ for (const {text, createdAt, attachments} of plugins.tweets.list) { _%>
> <%- text %>
<%_ if (attachments) { _%>
<%_ for (const {image, title, description, website} of attachments) { _%>
>
> <a href="<%= website %>"><img src="<%= image %>" alt="<%= title %>" height="200"></a>
<%_ } _%>
<%_ } _%>
>
> *<%= createdAt %>*
<%_ } _%>
<%_ } else { _%>
No recent tweets
<%_ } _%>
<%_ } _%>