Class: JekyllGithubContent::GithubMetaContentRenderer
- Inherits:
-
GithubContentRenderer
- Object
- Liquid::Tag
- GithubContentRenderer
- JekyllGithubContent::GithubMetaContentRenderer
- Defined in:
- lib/jekyll_github_content.rb
Instance Method Summary collapse
Methods inherited from GithubContentRenderer
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) "<div class=\"github-file\">\n <div class=\"meta-info\">\nGithub file by <a href=\"\#{@github_file.get_user_uri}\">\#{@github_file.user}</a>\n<br>\nRepo: <a href=\"\#{@github_file.get_repo_uri}\">\#{@github_file.repo}</a>\n<br>\nFile: \#{@github_file.file} <a href=\"\#{@github_file.get_raw_file_uri}\">Raw view</a>\n </div>\n</div>\n".strip end |