Class: Jekyll::MastodonLinkTagBlock

Inherits:
Liquid::Block
  • Object
show all
Defined in:
lib/jekyll/tags/mastodon-link.rb

Instance Method Summary collapse

Instance Method Details

#render(context) ⇒ Object



6
7
8
9
10
# File 'lib/jekyll/tags/mastodon-link.rb', line 6

def render(context)
  text = super
  url = MastodonSocial.syndication_info(context["page"]["url"])
  "<a href='#{url}'>#{text}</a>"
end