From 5758fcb69b1b8cd5684742c3bd4e2bff80beba1f Mon Sep 17 00:00:00 2001 From: Jermolene Date: Fri, 3 Jan 2014 09:16:58 +0000 Subject: [PATCH] Add instructions for adding a Twitter Follow button --- .../Adding a Twitter Follow button.tid | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 editions/clientserver/tiddlers/Adding a Twitter Follow button.tid diff --git a/editions/clientserver/tiddlers/Adding a Twitter Follow button.tid b/editions/clientserver/tiddlers/Adding a Twitter Follow button.tid new file mode 100644 index 000000000..6336b9b0f --- /dev/null +++ b/editions/clientserver/tiddlers/Adding a Twitter Follow button.tid @@ -0,0 +1,21 @@ +created: 20140103091348509 +modified: 20140103091632825 +tags: howto tips +title: Adding a Twitter Follow button +type: text/vnd.tiddlywiki + +Here's a macro that provides a Twitter Follow button for a particular username: + +``` +\define twitterFollowButton(username) + +\end +``` + +The only change from the version published at https://dev.twitter.com/docs/follow-button is that new lines have been removed. + +Note that the src URL is given without a protocol (ie "http" or "https"). It's done this way so that it works on sites whether they are hosted on a HTTP or HTTPS domain. If you want the Twitter button to work while using a TiddlyWiki offline on a "file://" URL, then you'll need to manually add the protocol. For example: + +``` + +```