Skip to content

Commit fe65a9a

Browse files
authored
Merge pull request #549 from ashawley/fix-548-smaller-twitter-feed
Fix #548 too big Twitter feed
2 parents 91a1242 + f3aa7ae commit fe65a9a

File tree

2 files changed

+1
-35
lines changed

2 files changed

+1
-35
lines changed

_layouts/frontpage.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ <h2 class="twitterhdr"><span>Scala on Twitter</span></h2>
220220
<div class="row">
221221
<div class="span12">
222222
<div id="tweets" class="tweets">
223-
<a class="twitter-timeline" data-tweet-limit="4" data-chrome="noheader nofooter noborders" href="https://twitter.com/scala_lang">Tweets by scala_lang</a> <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
223+
<a class="twitter-timeline" data-tweet-limit="4" data-chrome="noheader nofooter noborders" data-width="520" href="https://twitter.com/scala_lang">Tweets by scala_lang</a> <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
224224
</div>
225225
<br/>&nbsp;
226226
<div class="see-more-tweets">See more tweets, or</div>

resources/js/main.js

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -129,40 +129,6 @@ $(document).ready(function(){
129129
$(".shadow").css('display','block');
130130
}
131131

132-
// tweets
133-
$(function(){
134-
$("#tweets").tweetMachine('', {
135-
backendScript: 'https://www.scala-lang.org/webscripts/ajax/getFromTwitter.php?callback=?',
136-
endpoint: 'statuses/user_timeline',
137-
user_name: 'scala_lang',
138-
include_retweets: true,
139-
exclude_replies: false,
140-
limit: 4,
141-
autoRefresh: false,
142-
tweetFormat: '\
143-
<div class="tweet-container">\
144-
<div class="tweet">\
145-
<p class="text content"></p>\
146-
</div>\
147-
<div class="caret-container">\
148-
<div class="caret-divider">\
149-
<div class="caret-outer"></div>\
150-
<div class="caret-inner"></div>\
151-
</div>\
152-
</div>\
153-
<div class="raw bottom-anchored">\
154-
<div class="avatar-wrapper">\
155-
<img class="avatar" width="50" height="50" src="" />\
156-
</div>\
157-
<span class="tweet-username">\
158-
<a href="" class="username" rel="external"></a>\
159-
</span>\
160-
</div>\
161-
</div>\
162-
'
163-
});
164-
});
165-
166132
});
167133

168134
<!-- prettyprint js to prepend generated pre/code tags -->

0 commit comments

Comments
 (0)