class Jekyll::Tags::CustomLinkTag
Replaces the built in link tag temporarily
Public Class Methods
Calls superclass method
# File _plugins/link.rb, line 8 def initialize(tag_name, text, tokens) super @text = text.strip end
Public Instance Methods
# File _plugins/link.rb, line 13 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