Add love sorting

This commit is contained in:
Jeremy Thomas
2022-02-03 12:51:38 +00:00
parent 4f78a94700
commit 5db192ef7d
7 changed files with 591 additions and 68 deletions

View File

@@ -1,7 +1,10 @@
{% assign tweet = site.data.love.tweets_by_id[include.tweet_id] %}
{% assign twUrl = "https://twitter.com/" | append: tweet.username | append: "/status/" | append: tweet.id %}
<article class="bd-tw {{ include.modifier }} {% if include.drawing_id %}bd-has-drawing{% endif %}">
<article
data-likes="{{ tweet.hearts }}"
data-id="{{ tweet.id }}"
class="bd-tw {{ include.modifier }} {% if include.drawing_id %}bd-has-drawing{% endif %}">
<header class="bd-tw-header">
<a class="bd-tw-author" href="{{ twUrl }}" target="_blank">
<figure class="bd-tw-avatar">