mirror of https://github.com/freeCodeCamp/devdocs
parent
0dc8cfd5d3
commit
610e49119f
@ -0,0 +1,16 @@
|
||||
module Docs
|
||||
class HomeUrlFilter < Filter
|
||||
def call
|
||||
html.prepend(home_url_html) if home_url
|
||||
html
|
||||
end
|
||||
|
||||
def home_url_html
|
||||
<<-HTML.strip_heredoc
|
||||
<div class="_official">
|
||||
Official Documentation: <a href="#{home_url}" class="_official-link">#{home_url}</a>
|
||||
</div>
|
||||
HTML
|
||||
end
|
||||
end
|
||||
end
|
@ -1,15 +0,0 @@
|
||||
module Docs
|
||||
class OfficialUrlFilter < Filter
|
||||
def call
|
||||
official_url_html << html if base_url
|
||||
end
|
||||
|
||||
def official_url_html
|
||||
<<-HTML.strip_heredoc
|
||||
<div class="_official">
|
||||
Official Documentation: <a href="#{base_url}" class="_official-link">#{base_url}</a>
|
||||
</div>
|
||||
HTML
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in new issue