From: Jeremy Thomas Date: Sun, 7 Apr 2019 15:28:01 +0000 (+0100) Subject: Fix tw element X-Git-Tag: 0.7.5~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc02aab5fbfd913a9d9eeb43594c69e4d1de736a;p=thirdparty%2Fbulma.git Fix tw element --- diff --git a/docs/_includes/content/pro.html b/docs/_includes/content/pro.html index 8477fad83..7892a44a4 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 e3aaa18d8..ead11d1a2 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 }}