Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ab17334

Browse files
Merge pull request #7 from ostera/add-twitter-widget
Adds twitter follow widget
2 parents c7504d5 + 6465b16 commit ab17334

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

‎_includes/head.html‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>

‎_includes/twitter.html‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<a class="twitter-follow-button" href="http://twitter.com/tldr_pages" data-show-screen-name="false" data-size="large">Follow @tldr_pages</a>

‎css/solo.css‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,3 +163,6 @@ pre > code {
163163
display: inline;
164164
}
165165

166+
iframe#twitter-widget-0 {
167+
height: 30px !important;
168+
}

‎index.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ layout: default
44

55
<p class="widgets">
66
{% include github_stars.html %}
7+
{% include twitter.html %}
78
{% include gitter_im.html %}
89
</p>
910

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /