bulma/docs/_includes/elements/tw.html

58 lines
2.2 KiB
HTML
Raw Normal View History

2017-10-09 08:42:07 +00:00
{% assign twUrl = "https://twitter.com/" | append: include.tweet.username | append: "/status/" | append: include.tweet.id %}
2017-08-11 12:19:57 +00:00
2017-08-14 11:44:24 +00:00
<article class="bd-tw">
<header class="bd-tw-header">
<a class="bd-tw-author" href="{{ twUrl }}" target="_blank">
<figure class="bd-tw-avatar">
2017-10-09 09:04:12 +00:00
<img class="lazyload" src="{{ include.tweet.avatar }}">
2017-08-11 12:19:57 +00:00
</figure>
2017-08-14 11:44:24 +00:00
<div class="bd-tw-name">
<strong class="bd-tw-fullname">
2017-10-09 08:42:07 +00:00
{{ include.tweet.fullname }}
2017-08-11 12:19:57 +00:00
</strong>
2017-08-14 11:44:24 +00:00
<span class="bd-tw-username">
2017-10-09 08:42:07 +00:00
@{{ include.tweet.username }}
2017-08-11 12:19:57 +00:00
</span>
</div>
</a>
</header>
2017-08-14 11:44:24 +00:00
<div class="bd-tw-content">
2017-10-09 08:42:07 +00:00
{{ include.tweet.content }}
2017-08-11 12:19:57 +00:00
</div>
2017-08-14 11:44:24 +00:00
<p class="bd-tw-date">
2017-08-11 12:19:57 +00:00
<a href="{{ twUrl }}" target="_blank">
2017-10-09 08:42:07 +00:00
{{ include.tweet.date }}
2017-08-11 12:19:57 +00:00
</a>
</p>
<ul class="Tweet-actions">
<li class="Tweet-action">
2017-10-09 08:42:07 +00:00
<a class="TweetAction TweetAction--replyEdge web-intent" href="https://twitter.com/intent/tweet?in_reply_to={{ include.tweet.id }}">
2017-08-11 12:19:57 +00:00
<div class="Icon Icon--reply TweetAction-icon Icon--replyEdge"></div>
</a>
</li>
<li class="Tweet-action Tweet-action--retweet">
2017-10-09 08:42:07 +00:00
<a class="TweetAction TweetAction--retweetEdge web-intent" href="https://twitter.com/intent/retweet?tweet_id={{ include.tweet.id }}">
2017-08-11 12:19:57 +00:00
<div class="Icon Icon--retweet TweetAction-icon Icon--retweetEdge"></div>
2017-10-09 08:42:07 +00:00
{% if include.tweet.retweets != 0 %}
2017-08-11 12:19:57 +00:00
<span class="TweetAction-stat">
2017-10-09 08:42:07 +00:00
{{ include.tweet.retweets }}
2017-08-11 12:19:57 +00:00
</span>
{% endif %}
</a>
</li>
<li class="Tweet-action Tweet-action--heart">
2017-10-09 08:42:07 +00:00
<a class="TweetAction TweetAction--heartEdge web-intent" href="https://twitter.com/intent/like?tweet_id={{ include.tweet.id }}&amp;ref_src=twsrc%5Etfw&amp;ref_url=http%3A%2F%2Fbulma.io%2F&amp;original_referer=http%3A%2F%2Fbulma.io%2F&amp;tw_i={{ include.tweet.id }}&amp;tw_p=tweetembed" target="_blank">
2017-08-11 12:19:57 +00:00
<div class="Icon Icon--heartEdge TweetAction-icon Icon--heartEdge"></div>
2017-10-09 08:42:07 +00:00
{% if include.tweet.hearts != 0 %}
2017-08-11 12:19:57 +00:00
<span class="TweetAction-stat">
2017-10-09 08:42:07 +00:00
{{ include.tweet.hearts }}
2017-08-11 12:19:57 +00:00
</span>
{% endif %}
</a>
</li>
</ul>
</article>