module Octopress::Social::GitHub
Constants
- DEFAULTS
Attributes
config[RW]
Public Instance Methods
github_profile_link()
click to toggle source
# File lib/octopress-social/github.rb, line 35 def github_profile_link %Q{<a class="github-profile-link" href="https://github.com/#{username.sub('@', '')}" title="#{profile_link_title}">#{profile_link_text}</a>} end
profile_link_text()
click to toggle source
# File lib/octopress-social/github.rb, line 27 def profile_link_text config['profile_link_text'].sub(':username', username) end
profile_link_title()
click to toggle source
# File lib/octopress-social/github.rb, line 31 def profile_link_title config['profile_link_title'].sub(':username', username) end
set_config(site)
click to toggle source
# File lib/octopress-social/github.rb, line 16 def set_config(site) @config ||= begin config = site['octopress_social'] || site DEFAULTS.merge(config['github'] || {}) end end
username(item={})
click to toggle source
# File lib/octopress-social/github.rb, line 23 def username(item={}) config['username'] || '' end