From cc02aab5fbfd913a9d9eeb43594c69e4d1de736a Mon Sep 17 00:00:00 2001 From: Jeremy Thomas Date: Sun, 7 Apr 2019 16:28:01 +0100 Subject: [PATCH] Fix tw element --- docs/_includes/content/pro.html | 3 +- docs/_includes/elements/tw.html | 27 +- docs/_includes/elements/tws.html | 32 +- docs/_includes/index/customize.html | 7 + docs/_includes/index/js.html | 3 +- docs/_includes/index/modifiers.html | 3 +- docs/_sass/index.sass | 5 + docs/_sass/twitter.sass | 3 +- docs/css/bulma-docs.css | 739 ++++++---------------------- docs/love.html | 3 +- 10 files changed, 185 insertions(+), 640 deletions(-) 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 }}