Sha256: 19a6df483ffa0437c1b4670d4a4dea0c06eb4e56b2189e88e0a977ba717ef2f8

Contents?: true

Size: 571 Bytes

Versions: 6

Compression:

Stored size: 571 Bytes

Contents

module JekyllGithubSample
  class ReferenceTag < CodeTag

    def render(context)
      <<MARKUP.strip
<div class="github-sample-reference">
  <div class="author-info">
    <a href="#{@github_file.web_uri}">This Github Sample</a> is by <a href="#{@github_file.user_uri}">#{@github_file.user}</a>
  </div>
  <div class="meta-info">
    #{@github_file.filename} <a href="#{@github_file.web_uri}">view</a> <a href="#{@github_file.raw_uri}">raw</a>
  </div>
</div>
MARKUP
    end
  end
end

Liquid::Template.register_tag('github_sample_ref', JekyllGithubSample::ReferenceTag)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jekyll_github_sample-0.3.2 lib/jekyll_github_sample/reference_tag.rb
jekyll_github_sample-0.3.1 lib/jekyll_github_sample/reference_tag.rb
jekyll_github_sample-0.3.0 lib/jekyll_github_sample/reference_tag.rb
jekyll_github_sample-0.2.0 lib/jekyll_github_sample/reference_tag.rb
jekyll_github_sample-0.1.1 lib/jekyll_github_sample/reference_tag.rb
jekyll_github_sample-0.1.0 lib/jekyll_github_sample/reference_tag.rb