diff --git a/docs/_includes/content/pro.html b/docs/_includes/content/pro.html index 8477fad8..7892a44a 100644 --- a/docs/_includes/content/pro.html +++ b/docs/_includes/content/pro.html @@ -12,8 +12,7 @@ {{ include.content | markdownify }} {% if include.title == 'No JavaScript' %} - {% assign tweet = site.data.love.tweets_by_id.860885116909998080 %} - {% include elements/tw.html tweet=tweet modifier='bd-is-grey' %} + {% include elements/tw.html tweet_id="860885116909998080" modifier='bd-is-grey' %} {% endif %} diff --git a/docs/_includes/elements/tw.html b/docs/_includes/elements/tw.html index e3aaa18d..ead11d1a 100644 --- a/docs/_includes/elements/tw.html +++ b/docs/_includes/elements/tw.html @@ -1,54 +1,55 @@ -{% assign twUrl = "https://twitter.com/" | append: include.tweet.username | append: "/status/" | append: include.tweet.id %} +{% assign tweet = site.data.love.tweets_by_id[include.tweet_id] %} +{% assign twUrl = "https://twitter.com/" | append: tweet.username | append: "/status/" | append: tweet.id %}
- +
- {{ include.tweet.fullname }} + {{ tweet.fullname }} - @{{ include.tweet.username }} + @{{ tweet.username }}
- {{ include.tweet.content }} + {{ tweet.content }}

- {{ include.tweet.date }} + {{ tweet.date }}