class Octopress::Ink::Tags::FeedsTag

Public Instance Methods

render(context) click to toggle source
# File lib/octopress-ink/tags/feeds_tag.rb, line 5
def render(context)
  tags = []
  Bootstrap.feeds.each do |url, title|
    tags << tag(url, title)
  end
  tags.join("\n")
end
tag(url, title) click to toggle source
# File lib/octopress-ink/tags/feeds_tag.rb, line 13
def tag(url, title)
  %Q{<link href="#{File.join('/', Octopress.site.config['baseurl'], url).sub('index.xml', '')}" title="#{title}" rel="alternate" type="application/atom+xml">}
end