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.07 empty_view/config/twitter/twitter.rb
runeblog-0.3.06 empty_view/config/twitter/twitter.rb
runeblog-0.3.05 empty_view/config/twitter/twitter.rb
runeblog-0.3.04 empty_view/config/twitter/twitter.rb
runeblog-0.3.03 empty_view/config/twitter/twitter.rb
runeblog-0.3.02 empty_view/config/twitter/twitter.rb
runeblog-0.3.01 empty_view/config/twitter/twitter.rb
runeblog-0.2.99 empty_view/config/twitter/twitter.rb
runeblog-0.2.98 empty_view/config/twitter/twitter.rb
runeblog-0.2.96 empty_view/config/twitter/twitter.rb