mirror of https://github.com/freeCodeCamp/devdocs
parent
9f50c2cf49
commit
9e880425e2
@ -0,0 +1,12 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
module Docs
|
||||||
|
class Go
|
||||||
|
class AttributionFilter < Docs::AttributionFilter
|
||||||
|
def attribution_link
|
||||||
|
url = current_url.to_s.sub! 'localhost:6060', 'golang.org'
|
||||||
|
%(<a href="#{url}" class="_attribution-link">#{url}</a>)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in new issue