octopress-social 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5157a05a1fccbd57123bf4552f7970b5b494275e
4
- data.tar.gz: 78e06a1c549a635fd4b8a3af32d2f7d9901ed943
3
+ metadata.gz: 5b27b594472a3bee6b57fcabbac74abca1c50815
4
+ data.tar.gz: 587d0237852ed9b7b766f557ffa4c12c4c6f7e3f
5
5
  SHA512:
6
- metadata.gz: 5e398203937ab5aea38b6255f32548f697582bbdb7a1444c368b91e60fdb5433a4d81c42c7569edd66dc86f2e5c2c3a9cd0de2bee685cf101b0179cf4c2dda7e
7
- data.tar.gz: ac1ed24e4847b75aa507a39e7610aeac082b6a7faceb737ffddac5d05a9bf95906dfbca085bd50a846b61bf731bdd6fd8fe0a2e1bc4a14f8c6f76a42fde116de
6
+ metadata.gz: 3f53135023ff92f843ceacd311d2015b210f1817700f690a38be302f41b415717272b1bfc2fa991af92b1e01c5fc17ffd98d4553e6d09bcc76431a7c53873fd9
7
+ data.tar.gz: 230dfffc3171a891d789f8810e57287f206199c3a47e55fa6d9b7659fff81275b63396a541768bededb4c923b59e58d8366d8e593f41ce8590d09df9c0f9f36a
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.4.1 (2015-03-24)
4
+ - Fix: Added title attribute for email share link.
5
+
3
6
  ### 1.4.0 (2015-03-24)
4
7
  - New: Email sharing and contact tags
5
8
  - New: GitHub profile link
data/README.md CHANGED
@@ -41,16 +41,17 @@ Configure this plugin in your site's `_config.yml`. No configurations are requir
41
41
 
42
42
  ```yaml
43
43
  twitter:
44
- username: # Add your Twitter handle
45
- tweet_count: false # Show number of shares on Twitter
46
- size: normal # Or large
47
- tweet_link_text: Twitter # Configure the link text
48
- tweet_message: ":title by :username :hashtags - :url" # With Tweet button Twitter add the URL last
49
- embedded_link_color: # Set link color for embedded tweets
44
+ username: # Add your Twitter handle
45
+ tweet_count: false # Show number of shares on Twitter
46
+ size: normal # Or large
47
+ embedded_link_color: # Set link color for embedded tweets
50
48
 
51
- follow_count: false # Show number of followers
49
+ follow_count: false # Show number of followers
50
+ tweet_message: ":title by :username :hashtags - :url" # With Tweet button Twitter add the URL last
51
+ tweet_link_text: Twitter # Configure the link text
52
+ tweet_link_title: Share on Twitter # Share link title
52
53
  profile_link_text: Follow :username
53
- profile_link_title: Follow :username on Twitter # profile link title text
54
+ profile_link_title: Follow :username on Twitter # Profile link title text
54
55
  ```
55
56
 
56
57
  To include hashtags, in your tweet message add them in the YAML front matter of your post or page, like this:
@@ -143,7 +144,7 @@ facebook:
143
144
  share_link_text: Facebook # Text for plain-old link
144
145
  share_link_title: Share on Facebook # Share link title text
145
146
  profile_link_text: Friend on Facebook
146
- profile_link_title: Friend on Facebook # profile link title text
147
+ profile_link_title: Friend on Facebook # Profile link title text
147
148
 
148
149
  comment_count: 5 # Number of facebook comments to show by default
149
150
  comments_link_text: Comments
@@ -246,6 +247,7 @@ email:
246
247
  share_subject: :title by :author
247
248
  share_message: :title by :author - :url
248
249
  share_link_text: Email
250
+ share_link_title: Share via email
249
251
  contact_link_text: Email :author
250
252
  contact_link_title: Email :author
251
253
  ```
@@ -9,6 +9,7 @@ module Octopress
9
9
  'share_subject' => ':title by :author',
10
10
  'share_message' => ':title by :author - :url',
11
11
  'share_link_text' => 'Email',
12
+ 'share_link_title' => 'Share via email',
12
13
  'contact_link_text' => 'Email :author',
13
14
  'contact_link_title' => 'Email :author',
14
15
  'address' => nil
@@ -57,7 +58,9 @@ module Octopress
57
58
  end
58
59
 
59
60
  def email_share_link(site, item)
60
- %Q{<a class="email-share-link" href="mailto:?subject=#{subject(site, item)}&body=#{message(site, item)}">#{config['share_link_text']}</a>}
61
+ %Q{<a class="email-share-link"
62
+ href="mailto:?subject=#{subject(site, item)}&body=#{message(site, item)}"
63
+ title="#{config['share_link_title']}">#{config['share_link_text']}</a>}
61
64
  end
62
65
 
63
66
  def email_contact_link(site, item)
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Social
3
- VERSION = "1.4.0"
3
+ VERSION = "1.4.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-social
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis