Sha256: 4fed20cce425292761077ce44b3ac00efcff782779e5b40293ee8852abd248ec

Contents?: true

Size: 974 Bytes

Versions: 30

Compression:

Stored size: 974 Bytes

Contents

class Livetext::Functions

# Needed for Twitter??

=begin
<!-- Needed:  btw what is 'content'?
  <meta property='fb:admins' content='767352779'/> 
  <meta property='og:url' content='http://rubyhacker.com/blog2/#{slug}.html'/>
  <meta property='og:type' content='article'/>
  <meta property='og:title' content='#{title}'/>
  <meta property='og:image' content='http://rubyhacker.com/blog2/blog3b.gif'/>
  <meta property='og:description' content='#{teaser}'/>
-->
=end

  def twitter_share(title, url)
    name = _var("twitter.user")
    <<~HTML
      <a href='https://twitter.com/share' 
         class='twitter-share-button' 
         data-text='#{title}' 
         data-url='#{url}' 
         data-via='#{name}' 
         data-related='#{name}'>Tweet</a>
    HTML
  end

  def twitter_follow
    name = _var("twitter.user")
    <<~HTML
      <a href='https://twitter.com/#{name}' class='twitter-follow-button' data-show-count='false'>Follow @#{name}</a>
    HTML
  end

end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
runeblog-0.3.28 empty_view/config/twitter/twitter.rb
runeblog-0.3.27 empty_view/config/twitter/twitter.rb
runeblog-0.3.26 empty_view/config/twitter/twitter.rb
runeblog-0.3.25 empty_view/config/twitter/twitter.rb
runeblog-0.3.24 empty_view/config/twitter/twitter.rb
runeblog-0.3.23 empty_view/config/twitter/twitter.rb
runeblog-0.3.22 empty_view/config/twitter/twitter.rb
runeblog-0.3.21 empty_view/config/twitter/twitter.rb
runeblog-0.3.20 empty_view/config/twitter/twitter.rb
runeblog-0.3.19 empty_view/config/twitter/twitter.rb
runeblog-0.3.18 empty_view/config/twitter/twitter.rb
runeblog-0.3.17 empty_view/config/twitter/twitter.rb
runeblog-0.3.16 empty_view/config/twitter/twitter.rb
runeblog-0.3.15 empty_view/config/twitter/twitter.rb
runeblog-0.3.14 empty_view/config/twitter/twitter.rb
runeblog-0.3.13 empty_view/config/twitter/twitter.rb
runeblog-0.3.12 empty_view/config/twitter/twitter.rb
runeblog-0.3.11 empty_view/config/twitter/twitter.rb
runeblog-0.3.10 empty_view/config/twitter/twitter.rb
runeblog-0.3.08 empty_view/config/twitter/twitter.rb