class Jekyll::CustomLinkTag
Replaces the built in link tag temporarily
Public Class Methods
new(tag_name, text, tokens)
click to toggle source
Calls superclass method
# File _plugins/link.rb, line 6 def initialize(tag_name, text, tokens) super @text = text.strip end
Public Instance Methods
render(_context)
click to toggle source
# File _plugins/link.rb, line 11 def render(_context) # This is a workaround for https://github.com/jekyll/jekyll/issues/9179 # We should remove it when 9179 is solved. # # Note that this does NOT support news posts with a date in the URL. "/training-material/#{@text.gsub(/\.md/, '.html')}" end