mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-06-01 15:56:49 +00:00

* Automatically create linkable headers
* Visually improve position of linkable header chain icon
* Do not auto link headers on homepage
* Remove linkable_title everywhere
* 🚑 Re-instante linkable_title plugin as NOOP
15 lines
343 B
Ruby
15 lines
343 B
Ruby
module Jekyll
|
|
class LinkableTitleTag < Liquid::Tag
|
|
def initialize(tag_name, text, token)
|
|
super
|
|
@title = text
|
|
end
|
|
|
|
def render(context)
|
|
title = Liquid::Template.parse(@title).render context
|
|
"#{title}"
|
|
end
|
|
end
|
|
end
|
|
|
|
Liquid::Template.register_tag('linkable_title', Jekyll::LinkableTitleTag) |