Class: JekyllGithubContent::GithubMetaContentRenderer

Inherits:
GithubContentRenderer show all
Defined in:
lib/jekyll_github_content.rb

Instance Method Summary collapse

Methods inherited from GithubContentRenderer

#initialize

Constructor Details

This class inherits a constructor from JekyllGithubContent::GithubContentRenderer

Instance Method Details

#render(context) ⇒ Object



74
75
76
77
78
79
80
81
82
83
84
85
86
# File 'lib/jekyll_github_content.rb', line 74

def render(context)
  <<DELIMITER.strip
<div class="github-file">
  <div class="meta-info">
Github file by <a href="#{@github_file.get_user_uri}">#{@github_file.user}</a>
<br>
Repo: <a href="#{@github_file.get_repo_uri}">#{@github_file.repo}</a>
<br>
File: #{@github_file.file} <a href="#{@github_file.get_raw_file_uri}">Raw view</a>
  </div>
</div>
DELIMITER
end