class Jekyll::FDroidRepoInfoTag

Used to output the repo name/timestamp used to generate this F-Droid site.

Public Class Methods

new(tag_name, text, tokens) click to toggle source
Calls superclass method
# File lib/jekyll/FDroidRepoInfoTag.rb, line 25
def initialize(tag_name, text, tokens)
  super
end

Public Instance Methods

render(context) click to toggle source
# File lib/jekyll/FDroidRepoInfoTag.rb, line 29
def render(context)
  if @@repotag == ''
    site = context.registers[:site]
    url = site.config['fdroid-repo']
    index = FDroid::IndexV1.download(url, 'en')
    @@repotag = "#{index.repo.name} #{index.repo.date}"
  end
  return @@repotag
end